2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 23:25:45 +03:00

SV_FlyMove: Add impact to MOVETYPE_TOSS (related #555)

This commit is contained in:
s1lent 2018-01-17 17:29:03 +07:00
parent 01781eacc1
commit a8f4f03e3e
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -289,6 +289,9 @@ void SV_FlyMove(edict_t *ent, float time, float bounce)
if ((ent->v.flags & FL_ONGROUND) && ent->v.movetype == MOVETYPE_TOSS)
{
VectorClear(ent->v.velocity);
// run the impact function
SV_Impact(ent, trace.ent, &trace);
return;
}
#endif