ddnet/src/game/client
bors[bot] cdfc521132
Merge #4340 #4350
4340: Add functions for packing/unpacking int/unsigned using char arrays r=heinrich5991 a=Robyt3

Add `uint_to_bytes_be` and `bytes_be_to_uint` functions from upstream and use them where applicable to reduce duplicate code.

## 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
- [ ] 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)


4350: Fix map_extract r=heinrich5991 a=def-

Reported by cheeser0613

<!-- What is the motivation for the changes of this pull request -->

## 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: Robert Müller <robert.mueller@uni-siegen.de>
Co-authored-by: def <dennis@felsin9.de>
2021-11-15 19:33:45 +00:00
..
components Merge #4340 #4350 2021-11-15 19:33:45 +00:00
prediction Use correct (larger) m_NumSwitchers bound 2021-10-26 16:16:34 +02:00
animstate.cpp Fix clang-analyzer-core.UndefinedBinaryOperatorResult 2020-10-14 15:45:47 +02:00
animstate.h Manual preparation for cleaner clang-format 2020-09-26 21:41:01 +02:00
component.cpp Make components member of CGameClient 2021-07-12 12:07:31 +02:00
component.h Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
gameclient.cpp Merge #4341 2021-11-09 08:40:52 +00:00
gameclient.h Fix switch state when spectating other players 2021-11-08 23:51:28 +01:00
lineinput.cpp Add basic selection support for ui ex edit boxes 2021-10-04 19:58:25 +02:00
lineinput.h Add basic selection support for ui ex edit boxes 2021-10-04 19:58:25 +02:00
projectile_data.cpp Fix transparent shotgun bullets 2021-08-15 11:33:45 +02:00
projectile_data.h force tunezone 2021-04-23 11:01:38 +08:00
race.cpp Enable modernize-loop-convert clang-tidy check 2020-11-02 22:40:24 +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 Refactor CUIElements 2021-09-14 00:21:20 +02:00
render.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
render_map.cpp uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
skin.h Different comparators for skins in UI (no case) and regular skins (with case) 2021-03-23 13:39:54 +01:00
ui.cpp Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
ui.h Revert "Add new mouse state" 2021-10-23 13:48:21 +02:00
ui_ex.cpp Don't set cursor on empty text 2021-11-06 23:34:44 +01:00
ui_ex.h Reset selection, if gui element was changed outside of DoEditBox 2021-11-03 00:46:36 +01:00