ddnet/src/game/server
ChillerDragon f8ca16c50e Use real ClientID to lookup authed state and score
The variable `Id` is translated for old clients and is not guranteed to
be the real id. While `m_ClientID` is the real ID. That can also be used
to index the CServer::m_aClients[] array to get the authed state.

closed #7599

Fixes

```
valgrind ./DDNet-Server "dbg_dummies 1"
[..]
2023-12-07 18:01:33 I chat: *** 'Debug dummy 1' entered and joined the
game
==75634== Conditional jump or move depends on uninitialised value(s)
==75634==    at 0x2DAA83: CVariableInt::Pack(unsigned char*, int, int)
(compression.cpp:17)
==75634==    by 0x2DAD79: CVariableInt::Compress(void const*, int,
void*, int) (compression.cpp:98)
==75634==    by 0x23EC50: CServer::DoSnapshot() (server.cpp:1046)
==75634==    by 0x247D2D: CServer::Run() (server.cpp:2994)
==75634==    by 0x230173: main (main.cpp:193)
==75634==
==75634== Conditional jump or move depends on uninitialised value(s)
==75634==    at 0x2DAAF7: CVariableInt::Pack(unsigned char*, int, int)
(compression.cpp:25)
==75634==    by 0x2DAD79: CVariableInt::Compress(void const*, int,
void*, int) (compression.cpp:98)
==75634==    by 0x23EC50: CServer::DoSnapshot() (server.cpp:1046)
==75634==    by 0x247D2D: CServer::Run() (server.cpp:2994)
==75634==    by 0x230173: main (main.cpp:193)
==75634==
==75634== Conditional jump or move depends on uninitialised value(s)
==75634==    at 0x2DAA83: CVariableInt::Pack(unsigned char*, int, int)
(compression.cpp:17)
==75634==    by 0x32E812: CPacker::AddInt(int) (packer.cpp:20)
==75634==    by 0x23ED51: CServer::DoSnapshot() (server.cpp:1059)
==75634==    by 0x247D2D: CServer::Run() (server.cpp:2994)
==75634==    by 0x230173: main (main.cpp:193)
==75634==
==75634== Conditional jump or move depends on uninitialised value(s)
==75634==    at 0x2DAAF7: CVariableInt::Pack(unsigned char*, int, int)
(compression.cpp:25)
==75634==    by 0x32E812: CPacker::AddInt(int) (packer.cpp:20)
==75634==    by 0x23ED51: CServer::DoSnapshot() (server.cpp:1059)
==75634==    by 0x247D2D: CServer::Run() (server.cpp:2994)
==75634==    by 0x230173: main (main.cpp:193)
==75634==
```

Which is using ID 0 as index in the m_aClients array but only ID 63 was
ever initialized.
2023-12-07 18:40:16 +01:00
..
entities Use SetEmote() 2023-12-01 22:50:00 +01:00
gamemodes Move m_pLoadBestTimeResult to IGameController 2023-11-19 16:23:17 +01:00
ddracechat.cpp Move tele cursor behaviour to /tc and /telecursor 2023-11-30 22:34:36 +01:00
ddracecommands.cpp Move tele cursor behaviour to /tc and /telecursor 2023-11-30 22:34:36 +01:00
entity.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
entity.h Server: Use the tuning params via GameWorld (like in prediction) 2023-09-15 18:04:29 +03:00
eventhandler.cpp rewrite int64_t to CClientMask 2023-01-24 09:27:29 +01:00
eventhandler.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
gamecontext.cpp Stop all recording of server demos on shutdown. 2023-12-02 11:10:20 +01:00
gamecontext.h Merge pull request #7552 from Robyt3/Config-Refactoring 2023-12-01 19:34:44 +00:00
gamecontroller.cpp Set correct race precision value for 0.7 2023-11-23 18:37:02 +01:00
gamecontroller.h Move m_pLoadBestTimeResult to IGameController 2023-11-19 16:23:17 +01:00
gameworld.cpp Remove unused members 2023-11-19 17:36:16 +01:00
gameworld.h Server: Use the tuning params via GameWorld (like in prediction) 2023-09-15 18:04:29 +03:00
player.cpp Use real ClientID to lookup authed state and score 2023-12-07 18:40:16 +01:00
player.h Overload GetCharacter() with const version 2023-11-19 02:00:28 +01:00
save.cpp Move m_Teams to IGameController 2023-11-18 13:55:48 +01:00
save.h Save/load ninja 2023-10-09 11:11:55 +02:00
score.cpp Replace IConsole::m_Cheated variable with Cheated getter 2023-11-25 11:43:42 +01:00
score.h Fix scoreboard showing wrong best time 2022-12-31 12:36:03 +01:00
scoreworker.cpp Added back underline for sv_regional_rankings 0. 2023-10-30 22:40:04 +01:00
scoreworker.h Delay server race demo ending by 1 second. 2023-10-30 03:32:50 +01:00
teams.cpp Add finish info messages. 2023-11-26 17:29:40 +01:00
teams.h Bring Team logic into teams.cpp 2023-04-02 21:40:39 -04:00
teehistorian.cpp Refactor config manager, move config variable handling 2023-11-30 20:26:00 +01:00
teehistorian.h Record previous game ID in teehistorian 2023-08-27 16:11:45 +02:00
teeinfo.cpp Mark parameters as const when possible 2022-11-29 23:32:31 +01:00
teeinfo.h Mark parameters as const when possible 2022-11-29 23:32:31 +01:00