Skip to content

Commit

Permalink
SV_FlyMove: Add impact to MOVETYPE_TOSS (related #555)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Jan 17, 2018
1 parent 01781ea commit a8f4f03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rehlds/engine/sv_phys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8f4f03

Please sign in to comment.