Skip to content

Commit

Permalink
Merge pull request #217 from crkellen/master-issue-182-ClientDevilPos…
Browse files Browse the repository at this point in the history
…Desync

[MASTER] Fix Issue #182 - Client Devil Position Desync
  • Loading branch information
addictgamer authored Oct 20, 2017
2 parents 68c5ede + 2857a64 commit cea46f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/actmonster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3617,6 +3617,11 @@ void actMonster(Entity* my)

// rotate monster
dir = my->yaw - atan2( MONSTER_VELY, MONSTER_VELX );

// To prevent the Entity's position from being updated by dead reckoning on the CLient, set the velocity to 0 after usage
MONSTER_VELX = 0.0;
MONSTER_VELY = 0.0;

while ( dir >= PI )
{
dir -= PI * 2;
Expand Down

0 comments on commit cea46f9

Please sign in to comment.