ddnet/src/game/client
bors[bot] ab28267e30
Merge #5265
5265: Cleanup prediction entity handling a little r=def- a=trml

I looked over the remaining code for creating/removing entities in the prediction, and only ended up making some smaller changes:
- More consistent use of InsertEntity/RemoveEntity/Destroy
- Fixed one instance in gameclient.cpp where an entity was removed but not deleted (could potentially have been a memory leak)
- Removed some old code for retaining information about the characters after they left the snapshot (the client should only rely on the snapshot for prediction of players)

## Checklist

- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [x] Considered possible null pointers and out of bounds array indexing
- [x] Changed no physics that affect existing maps
- [x] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: trml <trml@users.noreply.github.com>
2022-05-28 12:48:10 +00:00
..
components Merge #5252 2022-05-28 10:56:21 +00:00
prediction Merge #5265 2022-05-28 12:48:10 +00:00
animstate.cpp Fix clang-analyzer-core.UndefinedBinaryOperatorResult 2020-10-14 15:45:47 +02:00
animstate.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
component.cpp Unify logging infrastructure between IConsole and dbg_msg 2022-04-29 15:21:26 +02:00
component.h Unify logging infrastructure between IConsole and dbg_msg 2022-04-29 15:21:26 +02:00
gameclient.cpp Merge #5265 2022-05-28 12:48:10 +00:00
gameclient.h Don't keep track of characters in the predicted gameworld that are not in the snapshot and require pred characters to be alive 2022-05-28 00:07:31 +02:00
lineinput.cpp Remove base/tl/base.h 2022-05-15 20:36:16 +02:00
lineinput.h m_DisplayStr -> m_aDisplayStr 2022-03-31 12:52:24 +02:00
projectile_data.cpp Sanitize owner data in client (fixes #4388) 2021-11-24 15:41:27 +01:00
projectile_data.h force tunezone 2021-04-23 11:01:38 +08:00
race.cpp Add modernize-deprecated-headers 2022-02-15 00:22:52 +01:00
race.h Fix all the header guards and adjust the script a little 2018-07-06 16:11:38 +02:00
render.cpp Extract CRenderTools::RenderCursor 2022-05-27 19:43:12 +02:00
render.h Extract CRenderTools::RenderCursor 2022-05-27 19:43:12 +02:00
render_map.cpp Add missing nanosecond conversions 2022-05-22 16:08:11 +02:00
skin.h Use std::vector<CSkin> instead of sorted_array 2022-05-27 00:03:13 +02:00
ui.cpp Merge #5254 #5257 2022-05-27 18:37:17 +00:00
ui.h Merge #5254 #5257 2022-05-27 18:37:17 +00:00
ui_ex.cpp Use SetActiveItem(nullptr) instead of SetActiveItem(0) 2022-05-27 11:59:14 +02:00
ui_ex.h Auto select search string on hot key 2022-03-13 19:12:06 +01:00