properly disable cheats when loading a saved game so only cheats that were stored are re-enabled

This commit is contained in:
zicodxx 2012-03-28 10:07:12 +02:00
parent 766f48084c
commit f4dfae832f
2 changed files with 2 additions and 1 deletions

View file

@ -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
--------

View file

@ -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);