Make qw's SV_Push remove ONGROUND for non-players.

This seems to have been an optimization for QW since standard qw removed
monsters. However, since there are QW mods that brought back monsters,
this should be an improvement.
This commit is contained in:
Bill Currie 2011-12-22 11:19:24 +09:00
parent d1be716031
commit 3eb788b3f6

View file

@ -483,6 +483,9 @@ SV_Push (edict_t *pusher, const vec3_t tmove, const vec3_t amove)
continue;
// The pusher and entity collide, so push the entity.
}
// remove the onground flag for non-players
if (c_movetype != MOVETYPE_WALK)
SVfloat (check, flags) = c_flags & ~FL_ONGROUND;
c_origin = SVvector (check, origin);
VectorCopy (c_origin, moved_from[num_moved]);