ddnet/src/game/server
Zwelf 18dff9ef46 Fix /load from backup database
Saves were deleted without the team getting its state when /load and
/save both happened during mysql server not reachable.

Before this fix, the saves were only in the DDNet log output for
recovery, not in any database anymore.

`Write::BACKUP_FIRST` is 0 so always false, so the previous code
didn't harm other code paths (especially `Write::NORMAL`).
The saves were tried to retrieve two times from the database, therefore
at the second time it didn't exist anymore. One time erroneously in
`Write::BACKUP_FIRST` and the second time in `Write::NORMAL_FAILED`.

Fixes #6924
2023-08-07 15:35:39 +02:00
..
entities Merge pull request #5398 from AssassinTee/feature/elasticity-tuning 2023-07-28 13:58:42 +00:00
gamemodes try to fix broken score 2023-05-16 16:42:08 +02:00
alloc.h Get rid of unused warning 2023-04-04 09:08:38 +02:00
ddracechat.cpp Merge #6790 #6793 2023-07-01 16:04:13 +00:00
ddracecommands.cpp Fix bug, increase dump_log max seconds to 10min 2023-07-15 14:57:12 +00:00
entity.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
entity.h Remove projectiles on save and load 2023-01-03 23:38:58 +01: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 Fix emotes sometimes being shown for others tees 2023-08-05 15:54:04 +02:00
gamecontext.h Revert "Allow server to redirect clients" 2023-07-24 22:51:27 +02:00
gamecontroller.cpp Send team 0 for switchers as well on solo server 2023-05-29 16:05:53 +02:00
gamecontroller.h move typedef to protocol.h 2023-01-26 11:56:48 +01:00
gameworld.cpp Use std::vector and std::deque instead of most std::lists 2023-07-01 15:44:35 +02:00
gameworld.h Use std::vector and std::deque instead of most std::lists 2023-07-01 15:44:35 +02:00
player.cpp Split emoticon sending into nearby and global players 2023-06-11 13:31:50 +02:00
player.h Split emoticon sending into nearby and global players 2023-06-11 13:31:50 +02:00
save.cpp Add templated str_append function for arrays with fixed size 2023-06-14 00:04:01 +02:00
save.h Remove projectiles on save and load 2023-01-03 23:38:58 +01:00
score.cpp Merge #6226 #6230 2023-01-04 18:03:11 +00:00
score.h Fix scoreboard showing wrong best time 2022-12-31 12:36:03 +01:00
scoreworker.cpp Fix /load from backup database 2023-08-07 15:35:39 +02:00
scoreworker.h fix timescore 2023-05-18 20:49:22 +02:00
teams.cpp Add templated str_append function for arrays with fixed size 2023-06-14 00:04:01 +02:00
teams.h Bring Team logic into teams.cpp 2023-04-02 21:40:39 -04:00
teehistorian.cpp Use sizeof(int32_t) instead of 4 2023-02-11 13:59:08 +01:00
teehistorian.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01: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