diff options
author | Max Horn | 2009-03-11 02:32:20 +0000 |
---|---|---|
committer | Max Horn | 2009-03-11 02:32:20 +0000 |
commit | 862c9547c6580dece7e0d1f12707ccb0a97f5dda (patch) | |
tree | 0482594ffe22da455443e1a100691e632fd19143 /engines/sci/engine/savegame.cfsml | |
parent | b52025ec82f3d6f029d936c6817df4bf658555c7 (diff) | |
download | scummvm-rg350-862c9547c6580dece7e0d1f12707ccb0a97f5dda.tar.gz scummvm-rg350-862c9547c6580dece7e0d1f12707ccb0a97f5dda.tar.bz2 scummvm-rg350-862c9547c6580dece7e0d1f12707ccb0a97f5dda.zip |
SCI: Removed some dead code
svn-id: r39328
Diffstat (limited to 'engines/sci/engine/savegame.cfsml')
-rw-r--r-- | engines/sci/engine/savegame.cfsml | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/engines/sci/engine/savegame.cfsml b/engines/sci/engine/savegame.cfsml index efb060b544..82a6778be1 100644 --- a/engines/sci/engine/savegame.cfsml +++ b/engines/sci/engine/savegame.cfsml @@ -101,12 +101,6 @@ char* SRSgets(char* s, int size, Common::SeekableReadStream* str) { } - -static EngineState *_global_save_state; -// Needed for some graphical stuff. -#define FILE_VERSION _global_save_state->savegame_version - - void write_reg_t(Common::WriteStream *fh, reg_t const *foo) { WSprintf(fh, PREG, PRINT_REG(*foo)); } @@ -768,7 +762,6 @@ int gamestate_save(EngineState *s, Common::WriteStream *fh, const char* savename meta.savegame_date = ((curTime.tm_mday & 0xFF) << 24) | (((curTime.tm_mon + 1) & 0xFF) << 16) | ((curTime.tm_year + 1900) & 0xFFFF); meta.savegame_time = ((curTime.tm_hour & 0xFF) << 16) | (((curTime.tm_min) & 0xFF) << 8) | ((curTime.tm_sec) & 0xFF); - _global_save_state = s; s->savegame_version = FREESCI_CURRENT_SAVEGAME_VERSION; s->dyn_views_list_serial = (s->dyn_views)? s->dyn_views->serial : -2; s->drop_views_list_serial = (s->drop_views)? s->drop_views->serial : -2; @@ -1063,7 +1056,6 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { retval = new EngineState(); retval->savegame_version = -1; - _global_save_state = retval; retval->gfx_state = s->gfx_state; SavegameMetadata meta; |