mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 20:18:17 +03:00
Don't set the ground entity in Entity::droptofloor
This commit is contained in:
parent
9fce2575ab
commit
cde13177a4
1 changed files with 0 additions and 3 deletions
|
@ -2619,14 +2619,11 @@ qboolean Entity::droptofloor(float maxfall)
|
|||
|
||||
trace = G_Trace(start, mins, maxs, end, this, edict->clipmask, false, "Entity::droptofloor");
|
||||
if (trace.fraction == 1 || trace.startsolid || trace.allsolid || !trace.ent) {
|
||||
groundentity = world->edict;
|
||||
return false;
|
||||
}
|
||||
|
||||
setOrigin(trace.endpos);
|
||||
|
||||
groundentity = trace.ent;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue