ddnet/src/game/server
bors[bot] ea852d8f1c
Merge #4852
4852: Fixed some useless double promotion r=def- a=Chairn

Double promotion occurs quite often when an operator is an hidden double, like constants written without the 'f' at the end. We might get a tiny micro improvement. Unfortunately, we can't do anything for all the double promotion occurring in printf like functions as it is the default for both C and C++.

Only this line might change physics:
4d47fcda09 (diff-d76009083687ba43c59dc7bb2c7357457c999c2eb9d913967d598e913c6fd01fR406)

## 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
- [x] 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: Chairn <chairn.nq@hotmail.fr>
2022-03-25 18:29:02 +00:00
..
entities Fixed some useless double promotion 2022-03-23 18:22:08 +01:00
gamemodes Refactoring of g_Config.m_SvTeam, See #4601 2022-02-19 18:11:15 +01:00
alloc.h maybe_unused with older compilers 2021-11-04 10:59:25 +01:00
ddracechat.cpp Add contributor 2022-03-18 14:41:48 +01:00
ddracecommands.cpp Don't mute for 0 seconds (fixes #4816) 2022-03-13 11:09:06 +01:00
entity.cpp fix 4781 and refactor of the client id for server demos 2022-03-07 19:03:43 +01:00
entity.h Add some further readability checks, mostly redundancy 2022-01-22 17:22:01 +01:00
eventhandler.cpp fix 4781 and refactor of the client id for server demos 2022-03-07 19:03:43 +01:00
eventhandler.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
gamecontext.cpp Support uppercase commands for /r and /w 2022-03-22 23:39:58 +01:00
gamecontext.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
gamecontroller.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
gamecontroller.h Make spawn position independent of players in other teams 2022-02-06 00:01:50 +01:00
gameworld.cpp Fixed some useless double promotion 2022-03-23 18:22:08 +01:00
gameworld.h Init m_pNextTraverseEntity 2022-02-09 15:26:50 +01:00
player.cpp make spectators team independent 2022-03-14 13:25:47 +01:00
player.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
save.cpp Refactoring of g_Config.m_SvTeam, See #4601 2022-02-19 18:11:15 +01:00
save.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
score.cpp Refactoring of g_Config.m_SvTeam, See #4601 2022-02-19 18:11:15 +01:00
score.h Factor CScoreWorker out of CScore, add SaveScore test 2021-12-19 19:40:20 +01:00
scoreworker.cpp Fixed some useless double promotion 2022-03-23 18:22:08 +01:00
scoreworker.h Factor CScoreWorker out of CScore, add SaveScore test 2021-12-19 19:40:20 +01:00
teams.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
teams.h Refactoring of g_Config.m_SvTeam, See #4601 2022-02-19 18:11:15 +01:00
teehistorian.cpp Record player_ready event in teehistorian 2022-02-07 23:31:46 +01:00
teehistorian.h Record player_ready event in teehistorian 2022-02-07 23:31:46 +01:00
teeinfo.cpp Fix variable names manually 2020-11-02 22:40:40 +01:00
teeinfo.h Run clang-format 2020-09-26 21:50:15 +02:00