mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
5da64c54fd
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. |
||
---|---|---|
.. | ||
client | ||
editor | ||
server | ||
alloc.h | ||
collision.cpp | ||
collision.h | ||
gamecore.cpp | ||
gamecore.h | ||
layers.cpp | ||
layers.h | ||
localization.cpp | ||
localization.h | ||
mapbugs.cpp | ||
mapbugs.h | ||
mapbugs_list.h | ||
mapitems.cpp | ||
mapitems.h | ||
mapitems_ex.cpp | ||
mapitems_ex.h | ||
mapitems_ex_types.h | ||
prng.cpp | ||
prng.h | ||
teamscore.cpp | ||
teamscore.h | ||
tuning.h | ||
version.h | ||
voting.h |