diff options
author | Nicola Mettifogo | 2007-03-11 14:14:08 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-03-11 14:14:08 +0000 |
commit | 3b5c330cef5d728b10893e40474c47142b57e83e (patch) | |
tree | 98449e39933f485561ded9bd894f8a0e5829d6be /engines/parallaction/saveload.cpp | |
parent | 981d11dcfdae5efc03f1139523faa451375f7b25 (diff) | |
download | scummvm-rg350-3b5c330cef5d728b10893e40474c47142b57e83e.tar.gz scummvm-rg350-3b5c330cef5d728b10893e40474c47142b57e83e.tar.bz2 scummvm-rg350-3b5c330cef5d728b10893e40474c47142b57e83e.zip |
wrapped active location data into a new structure
svn-id: r26085
Diffstat (limited to 'engines/parallaction/saveload.cpp')
-rw-r--r-- | engines/parallaction/saveload.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/parallaction/saveload.cpp b/engines/parallaction/saveload.cpp index dc068abb50..c20a72d168 100644 --- a/engines/parallaction/saveload.cpp +++ b/engines/parallaction/saveload.cpp @@ -64,15 +64,15 @@ void Parallaction::doLoadGame(uint16 slot) { f->readLine(s, 29); f->readLine(_vm->_characterName, 15); - f->readLine(_location, 15); + f->readLine(_vm->_location._name, 15); - strcat(_location, "."); + strcat(_vm->_location._name, "."); f->readLine(s, 15); - _firstPosition._x = atoi(s); + _location._startPosition._x = atoi(s); f->readLine(s, 15); - _firstPosition._y = atoi(s); + _location._startPosition._y = atoi(s); f->readLine(s, 15); _score = atoi(s); @@ -135,7 +135,7 @@ void Parallaction::doLoadGame(uint16 slot) { parseLocation("common"); - strcat(_location, _vm->_characterName); + strcat(_vm->_location._name, _vm->_characterName); _engineFlags |= kEngineChangeLocation; return; @@ -375,7 +375,7 @@ void Parallaction::loadGame() { void Parallaction::saveGame() { - if (!scumm_stricmp(_location, "caveau")) + if (!scumm_stricmp(_vm->_location._name, "caveau")) return; int slot = selectSaveFile( 1, "Save file", "Save" ); |