ddnet/src
Robert Müller 12d3c8245d Fix prediction errors and incorrect rendering after changing map
Fix game times and prediction not being updated when only exactly two snapshots have been received, due to the conditions `m_aReceivedSnapshots[...] >= 3`. These specific condition are not necessary and replaced with simpler checks whether the current snapshot is set. Some duplicate nested conditions are also removed.

Pump the network first in `CClient::Update` before updating anything else, to ensure that snapshots are received from the network client before the game times and prediction are being updated based on the current snapshots.

Fix current and previous game tick always being `0` on the first call of `IGameClient::OnNewSnapshot` when two snapshot have been received. Now, the game ticks are properly initialized from the two initial snapshots.

Fix old inputs sometimes being used in prediction after changing map because inputs with tick `-1` were not being ignored.

Ensure all snapshots and game times are properly cleared when entering the game.
2024-04-18 20:40:31 +02:00
..
android Add tests for overloaded hash operators, use operator instead 2022-11-12 20:36:38 +01:00
antibot Rename all variables for strict camel-casing of abbreviations 2024-03-05 15:44:09 +01:00
base Fix assertion on Windows when redirecting console output to nul 2024-04-17 20:00:32 +02:00
engine Fix prediction errors and incorrect rendering after changing map 2024-04-18 20:40:31 +02:00
game Improve messaging to players why /load command does nothing 2024-04-17 22:10:40 +02:00
macos Add INotifications kernel interface 2023-12-16 18:15:43 +01:00
masterping update ci actions, update rust edition to 2021 since our MSRV covers it 2024-02-25 15:55:10 +01:00
mastersrv update ci actions, update rust edition to 2021 since our MSRV covers it 2024-02-25 15:55:10 +01:00
rust-bridge Rename all variables for strict camel-casing of abbreviations 2024-03-05 15:44:09 +01:00
steam Rename all variables for strict camel-casing of abbreviations 2024-03-05 15:44:09 +01:00
test Revert "Record player name in Teehistorian files" 2024-04-16 12:41:14 +08:00
tools Add CImageInfo::DataSize convenience function 2024-03-27 21:12:02 +01:00