Fix desynch when a player spawns
All threads resolved!
All threads resolved!
This fixes a common, longstanding bug where a player spawning/respawning can randomly desynch the game.
This issue was caused by a nasty hack, however simply removing that hack was not enough, as it was added to prevent an inconvenient glitch where players would spawn in the wrong direction depending on their input lag.
In order to fix that properly, I made angleturn
a relative value when sending packets,
and turning it back into an absolute value before running the gamelogic.
That way, gamelogic events (spawning, hitting a spring, etc), which cannot be predicted at time of calling G_BuildTicCmd
,
can change the player's angle without any delay caused by latency.
Merge request reports
Activity
Filter activity
added 63 commits
-
c6e13d0e...b13f2985 - 62 commits from branch
next
- e2b860dc - Merge branch 'next' into 'fix-spawn-desynch'
-
c6e13d0e...b13f2985 - 62 commits from branch
- Resolved by LJ Sonic
mentioned in commit 191e2e09
Please register or sign in to reply