ddnet/src/game
Robert Müller 5da64c54fd Fix tee briefly appearing at previous position when joining
Previously, when connecting to servers repeatedly, the local tee would appear at the position it had on the previous server for a short time when joining.

This (and potentially other bugs) are fixed by clearing all game related `CGameClient` member variables in the `OnReset` function. Additionally, the `OnReset` function is now used in the `OnInit` function to ensure everything is initialized correctly when starting the client and to avoid duplicating the code.

In particular, this bug was limited to use of `cl_predict 1`, because the predicted gameworlds were not being reset when disconnecting, causing the predicted world and character from the previous server to be used. This bug was introduced in version 15.6, which added the predicted gameworlds in #1620. Closes #4339.
2024-04-11 21:37:53 +02:00
..
client Fix tee briefly appearing at previous position when joining 2024-04-11 21:37:53 +02:00
editor Increase maximum number of favorite communities from 3 to 5 2024-03-31 20:17:51 +02:00
server Merge pull request #8199 from dobrykafe/pr-team0mode-fix 2024-04-11 16:45:22 +00:00
alloc.h Move alloc.h to game/ and use it in client/prediction/entity.h 2023-09-15 18:04:29 +03:00
collision.cpp Make tele getters const 2024-03-14 08:50:35 +08:00
collision.h Make tele getters const 2024-03-14 08:50:35 +08:00
gamecore.cpp Merge pull request #7947 from ChillerDragon/pr_coll_tele 2024-03-14 17:02:09 +00:00
gamecore.h Merge pull request #7947 from ChillerDragon/pr_coll_tele 2024-03-14 17:02:09 +00:00
layers.cpp Ensure white color for entities layers when loading map layers 2023-12-11 13:37:23 +01:00
layers.h Remove Parallax Zoom from map file 2023-10-29 23:43:19 +01:00
localization.cpp Remove CLocConstString 2023-08-30 19:24:38 +02:00
localization.h Remove CLocConstString 2023-08-30 19:24:38 +02:00
mapbugs.cpp Remove obsolete clang-tidy NOLINT comments 2023-10-11 17:22:59 +02:00
mapbugs.h Remove code for CRC in most places, except where needed for net compat 2020-10-14 17:08:58 +02:00
mapbugs_list.h Revert "Add mapbug "stoppers-passthrough@ddnet.tw"" 2018-08-22 08:33:21 +02:00
mapitems.cpp Differentiate between normal and checkpoint teles 2023-12-27 15:23:57 +01:00
mapitems.h Differentiate between normal and checkpoint teles 2023-12-27 15:23:57 +01:00
mapitems_ex.cpp Remove Parallax Zoom from map file 2023-10-29 23:43:19 +01:00
mapitems_ex.h Remove Parallax Zoom from map file 2023-10-29 23:43:19 +01:00
mapitems_ex_types.h Remove Parallax Zoom from map file 2023-10-29 23:43:19 +01:00
prng.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
prng.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
teamscore.cpp Rename all variables for strict camel-casing of abbreviations 2024-03-05 15:44:09 +01:00
teamscore.h Rename all variables for strict camel-casing of abbreviations 2024-03-05 15:44:09 +01:00
tuning.h Replace 50 with SERVER_TICK_SPEED or TickSpeed() 2023-11-23 14:42:30 +01:00
version.h Version 18.1 2024-03-14 17:14:07 +01:00
voting.h Run clang-format 2020-09-26 21:50:15 +02:00