properly disable cheats when loading a saved game so only cheats that were stored are re-enabled
This commit is contained in:
parent
766f48084c
commit
f4dfae832f
|
@ -4,6 +4,7 @@ D1X-Rebirth Changelog
|
|||
--------
|
||||
main/slew.c: Fix compile-time error when building without editor
|
||||
arch/sdl/jukebox.c, main/songs.c: Allow .flac to be a filename extension for sng file and jukebox
|
||||
main/state.c: properly disable cheats when loading a saved game so only cheats that were stored are re-enabled
|
||||
|
||||
20120324
|
||||
--------
|
||||
|
|
|
@ -1224,7 +1224,7 @@ int state_restore_all_sub(char *filename)
|
|||
Difficulty_level = PHYSFSX_readSXE32(fp, swap);
|
||||
|
||||
// Restore the cheats enabled flag
|
||||
|
||||
game_disable_cheats(); // disable cheats first
|
||||
cheats.enabled = PHYSFSX_readSXE32(fp, swap);
|
||||
cheats.turbo = PHYSFSX_readSXE32(fp, swap);
|
||||
|
||||
|
|
Loading…
Reference in a new issue