NX/VITA: Fix downward velocity on monster MOVETYPE_WALK being constant

This commit is contained in:
cypress 2023-12-27 15:40:27 -05:00 committed by GitHub
parent d49f680b17
commit f5ed62245c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1351,7 +1351,7 @@ void SV_Physics_Walk(edict_t *ent)
trace_t downtrace;
vec3_t groundlocation;
VectorCopy(ent->v.origin,groundlocation);
groundlocation[2] = -STEPSIZE + ent->v.velocity[2]*host_frametime;
groundlocation[2] += -STEPSIZE + ent->v.velocity[2]*host_frametime;
downtrace = SV_Move(ent->v.origin,ent->v.mins,ent->v.maxs,groundlocation, MOVE_NOMONSTERS,ent);