ddnet/src/game/client/components
bors[bot] 5df2febd58
Merge #4245
4245: Further fixes for cpu/zoom on large maps with entityex r=def- a=trml

Attempt to fix #4244

Added network clipping to entity ex for projectiles and pickups, and made snapping of gamecontroller happen before gameworld (as suggested in #4236), which should help when zooming out on large maps in general (where the number of entities exceeds the maximum number of snap items).

Also added bounds checks for switchers in the client.

## Checklist

- [ ] 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
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] 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>
2021-10-26 09:50:51 +00:00
..
background.cpp Remove components pointers 2021-07-12 12:14:02 +02:00
background.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
binds.cpp Fix composed binds. Close #3771 2021-04-17 17:37:39 +02:00
binds.h Make components member of CGameClient 2021-07-12 12:07:31 +02:00
broadcast.cpp Remove components pointers 2021-07-12 12:14:02 +02:00
broadcast.h Broadcast: Fix display time during demo replay 2019-04-02 23:28:13 +02:00
camera.cpp Allow floats arguments for zoom 2021-08-19 22:13:04 +02:00
camera.h Always send correct zoom dimensions 2021-09-11 01:08:32 +02:00
chat.cpp Old chat wrapping for old chat mode 2021-10-15 14:31:52 +02:00
chat.h Fix shift + tab selecting second last index in console, player name chat & command chat 2021-09-14 13:15:09 +02:00
console.cpp Fix mouse select position in console when using different page 2021-10-26 00:16:52 +02:00
console.h Fix mouse select position in console when using different page 2021-10-26 00:16:52 +02:00
controls.cpp Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
controls.h Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
countryflags.cpp Small graphic refactoring 2021-09-14 00:21:17 +02:00
countryflags.h Small graphic refactoring 2021-09-14 00:21:17 +02:00
damageind.cpp Small graphic refactoring 2021-09-14 00:21:17 +02:00
damageind.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
debughud.cpp Don't crash with debug mode in demo 2020-11-12 22:56:50 +01:00
debughud.h hint for disabling debug mode 2020-11-03 15:06:31 +08:00
effects.cpp math: Rename frandom() to random_float() to match with random_int() 2021-08-03 14:29:52 +02:00
effects.h Run clang-format 2020-09-26 21:50:15 +02:00
emoticon.cpp Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
emoticon.h Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
flow.cpp Fix all Multiplication type alerts by CodeQL 2020-10-05 19:03:54 +02:00
flow.h Run clang-format 2020-09-26 21:50:15 +02:00
ghost.cpp Remove components pointers 2021-07-12 12:14:02 +02:00
ghost.h Make components member of CGameClient 2021-07-12 12:07:31 +02:00
hud.cpp Small graphic refactoring 2021-09-14 00:21:17 +02:00
hud.h Use NUM_DUMMIES for dummy array length 2020-10-18 23:15:25 +02:00
items.cpp Network clipping for entityex in CPickup and CProjectile, snap gamecontroller before gameworld, bound checks for switchers in client 2021-10-25 02:34:28 +02:00
items.h Replace projectile hack with a new extended snapshot object 2021-01-26 20:58:42 +01:00
killmessages.cpp capitalize Color & remove superfluous toggle 2021-10-05 18:48:08 +02:00
killmessages.h Make components member of CGameClient 2021-07-12 12:07:31 +02:00
mapimages.cpp invalidate texture when unloading a texture. 2021-09-13 13:23:00 +02:00
mapimages.h Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
maplayers.cpp Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
maplayers.h Make components member of CGameClient 2021-07-12 12:07:31 +02:00
mapsounds.cpp Some char array naming convention 2021-09-13 12:21:56 +02:00
mapsounds.h Make components member of CGameClient 2021-07-12 12:07:31 +02:00
menu_background.cpp Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
menu_background.h Make menu background camera impl more robust 2020-10-13 15:37:34 +02:00
menus.cpp Minimal changes from mouse state change: fix editor & input 2021-10-23 14:24:52 +02:00
menus.h Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
menus_browser.cpp Add basic selection support for ui ex edit boxes 2021-10-04 19:58:25 +02:00
menus_demo.cpp Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
menus_ingame.cpp Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
menus_settings.cpp Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
menus_settings_assets.cpp invalidate texture when unloading a texture. 2021-09-13 13:23:00 +02:00
menus_start.cpp Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
motd.cpp More colors from chat in console 2021-03-08 01:20:28 +01:00
motd.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
nameplates.cpp Merge #4121 #4124 2021-08-30 09:10:53 +00:00
nameplates.h Fix specchar transparency and move spec-char to character snap 2021-08-29 03:04:22 +02:00
particles.cpp Small graphic refactoring 2021-09-14 00:21:17 +02:00
particles.h Only render visible particles 2020-12-23 14:55:49 +01:00
players.cpp Use gametick as int for emoticon calculation, add the fraction seperately 2021-09-15 01:06:30 +02:00
players.h Make components member of CGameClient 2021-07-12 12:07:31 +02:00
race_demo.cpp Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
race_demo.h fix fs_listdir and fs_listdir_fileinfo with unicode on windows 2021-08-23 12:49:15 +02:00
scoreboard.cpp Remove components pointers 2021-07-12 12:14:02 +02:00
scoreboard.h Scoreboard same line height and font size for each team (fixes #3216, supersedes #3219) 2020-11-05 12:15:27 +01:00
skins.cpp Merge UnloadTexture with UnloadTextureNew 2021-09-15 13:19:54 +02:00
skins.h Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
sounds.cpp Remove components pointers 2021-07-12 12:14:02 +02:00
sounds.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
spectator.cpp Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
spectator.h Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
statboard.cpp Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
statboard.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
voting.cpp Some char array naming convention 2021-09-13 12:21:56 +02:00
voting.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00