mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-10 12:36:38 +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");
|
trace = G_Trace(start, mins, maxs, end, this, edict->clipmask, false, "Entity::droptofloor");
|
||||||
if (trace.fraction == 1 || trace.startsolid || trace.allsolid || !trace.ent) {
|
if (trace.fraction == 1 || trace.startsolid || trace.allsolid || !trace.ent) {
|
||||||
groundentity = world->edict;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
setOrigin(trace.endpos);
|
setOrigin(trace.endpos);
|
||||||
|
|
||||||
groundentity = trace.ent;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue