mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #3965
3965: Fix save codes (symptom: always jumping after load) r=Learath2 a=heinrich5991 "\t" was missing for one variable. <!-- What is the motivation for the changes of this pull request --> ## 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 - [ ] 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: heinrich5991 <heinrich5991@gmail.com>
This commit is contained in:
commit
d74042c47f
|
@ -253,7 +253,7 @@ char *CSaveTee::GetString(const CSaveTeam *pTeam)
|
|||
"%d\t" // m_NotEligibleForFinish
|
||||
"%d\t%d\t%d\t" // tele weapons
|
||||
"%s\t" // m_aGameUuid
|
||||
"%d\t%d" // m_HookedPlayer, m_NewHook
|
||||
"%d\t%d\t" // m_HookedPlayer, m_NewHook
|
||||
"%d\t%d\t%d\t%d\t" // input stuff
|
||||
"%d\t" // m_ReloadTimer
|
||||
"%d", // m_TeeStarted
|
||||
|
@ -324,7 +324,7 @@ int CSaveTee::FromString(const char *String)
|
|||
"%d\t" // m_NotEligibleForFinish
|
||||
"%d\t%d\t%d\t" // tele weapons
|
||||
"%36s\t" // m_aGameUuid
|
||||
"%d\t%d" // m_HookedPlayer, m_NewHook
|
||||
"%d\t%d\t" // m_HookedPlayer, m_NewHook
|
||||
"%d\t%d\t%d\t%d\t" // input stuff
|
||||
"%d\t" // m_ReloadTimer
|
||||
"%d", // m_TeeStarted
|
||||
|
|
Loading…
Reference in a new issue