Call SetSize() directly from setModel()

This commit is contained in:
smallmodel committed 2023-08-17 16:09:29 +02:00
1 parent c366c10530
commit 3c8c4e9f97
1 file changed
+1 -6
+1 -6
View File
@@ -2005,12 +2005,7 @@ void Entity::setModel(const str& mdl)
setSolidType(SOLID_NOT);
}
mins = edict->r.mins;
maxs = edict->r.maxs;
size = maxs - mins;
edict->r.radius = size.length() * 0.5f;
edict->radius2 = edict->r.radius * edict->r.radius;
SetSize();
return;
}
}