mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 01:54:19 +00:00
ab28267e30
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> |
||
---|---|---|
.. | ||
client | ||
editor | ||
server | ||
bezier.cpp | ||
bezier.h | ||
collision.cpp | ||
collision.h | ||
ddracechat.h | ||
ddracecommands.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 | ||
variables.h | ||
version.h | ||
voting.h |