ddnet/src/engine/shared
bors[bot] 908646eea5
Merge #3605
3605: Adopt some more refactoring from upstream r=heinrich5991 a=Kaffeine

- Backport 'Make spectators stay specs on map changed'
- Adopt upstream refactoring: Mark several functions as 'const'
- CGameContext::SendVoteStatus: Hide the trick for 64 clients
- GameController: Add OnPlayerConnect() like in the upstream
- Move DDRace-specific player initialization code to the Controller. Dependencies:
  - CGameControllerDDRace: Add Score() getter
  - Get rid of gamemode.h with confusing/conflicting definitions (re-defined `GAME_NAME`)
- Replace remaining int64_t by int64 for the sake of consistency

I checked the changes in-game (I ran a server and tested with two 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
- [ ] 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: Alexander Akulich <akulichalexander@gmail.com>
2021-02-23 18:22:28 +00:00
..
compression.cpp Run clang-format 2020-09-26 21:50:15 +02:00
compression.h Made int packing functions safe 2017-09-17 02:36:50 +02:00
config.cpp CConfig: Use str_escape in EscapeParam() 2021-01-16 03:20:57 +03:00
config.h Port CConfig API from the upstream (0.7.5) 2021-01-10 17:10:19 +03:00
config_variables.h Merge #3606 #3617 #3628 #3631 2021-02-20 16:46:00 +00:00
console.cpp Port CConfig API from the upstream (0.7.5) 2021-01-10 17:10:19 +03:00
console.h Port CConfig API from the upstream (0.7.5) 2021-01-10 17:10:19 +03:00
csv.cpp Add a simple CSV writer for Python's "excel" csv dialect 2020-06-23 09:11:59 +02:00
csv.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
datafile.cpp Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
datafile.h Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
demo.cpp Work around clang-analyzer-unix.Malloc false positive 2020-12-22 12:17:50 +01:00
demo.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
econ.cpp Port CConfig API from the upstream (0.7.5) 2021-01-10 17:10:19 +03:00
econ.h Port CConfig API from the upstream (0.7.5) 2021-01-10 17:10:19 +03:00
engine.cpp Run clang-format 2020-09-26 21:50:15 +02:00
fifo.cpp Remove fifo file on shutdown 2021-02-21 17:31:25 +01:00
fifo.h Remove fifo file on shutdown 2021-02-21 17:31:25 +01:00
filecollection.cpp Run clang-format 2020-09-26 21:50:15 +02:00
filecollection.h Make sure headers compile standalone 2020-09-26 21:50:27 +02:00
global_uuid_manager.cpp Move teehistorian UUIDs into engine 2018-01-11 16:01:13 +01:00
huffman.cpp Run clang-format 2020-09-26 21:50:15 +02:00
huffman.h Run clang-format 2020-09-26 21:50:15 +02:00
image_manipulation.cpp Update missing file from dilate 2021-02-13 14:04:42 +01:00
image_manipulation.h lower alpha threshold 2021-02-03 20:05:02 +01:00
jobs.cpp Run clang-format 2020-09-26 21:50:15 +02:00
jobs.h Add Thread Safety Analysis 2020-12-23 18:13:21 +01:00
json.cpp Run clang-format 2020-09-26 21:50:15 +02:00
json.h Run clang-format 2020-09-26 21:50:15 +02:00
kernel.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
linereader.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
linereader.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
map.cpp Add menu background map 2020-09-23 23:38:28 +02:00
map.h Add menu background map 2020-09-23 23:38:28 +02:00
masterserver.cpp Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
memheap.cpp Run clang-format 2020-09-26 21:50:15 +02:00
memheap.h Run clang-format 2020-09-26 21:50:15 +02:00
message.h Updated copyrights 2010-11-20 21:26:06 +01:00
netban.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
netban.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
network.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
network.h Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
network_client.cpp Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
network_conn.cpp Allow utf8 ban reasons (fixes #3329) 2020-11-18 14:42:12 +01:00
network_console.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
network_console_conn.cpp Run clang-format 2020-09-26 21:50:15 +02:00
network_server.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
packer.cpp Run clang-format 2020-09-26 21:50:15 +02:00
packer.h Run clang-format 2020-09-26 21:50:15 +02:00
protocol.h Replace remaining non-extended extension messages 2021-01-12 01:48:10 +01:00
protocol_ex.cpp Run clang-format 2020-09-26 21:50:15 +02:00
protocol_ex.h Remove F-Client-specific messages 2021-01-12 01:38:23 +01:00
protocol_ex_msgs.h Run clang-format 2020-09-26 21:50:15 +02:00
ringbuffer.cpp Run clang-format 2020-09-26 21:50:15 +02:00
ringbuffer.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
serverbrowser.cpp Run clang-format 2020-09-26 21:50:15 +02:00
snapshot.cpp Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
snapshot.h Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
storage.cpp OSX -> macOS 2021-02-12 13:41:41 +01:00
teehistorian_ex.cpp Run clang-format 2020-09-26 21:50:15 +02:00
teehistorian_ex.h Run clang-format 2020-09-26 21:50:15 +02:00
teehistorian_ex_chunks.h Run clang-format 2020-09-26 21:50:15 +02:00
uuid_manager.cpp Allow ParseUuid to report errors and add tests 2021-01-23 01:21:20 +01:00
uuid_manager.h Allow ParseUuid to report errors and add tests 2021-01-23 01:21:20 +01:00
video.cpp Run clang-format 2020-09-26 21:50:15 +02:00
video.h Run clang-format 2020-09-26 21:50:15 +02:00
websockets.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
websockets.h Make sure headers compile standalone 2020-09-26 21:50:27 +02:00