diff options
author | Strangerke | 2016-07-25 08:43:19 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 831eca5c42b375870b1d6063a43c7f9cbf7df3ce (patch) | |
tree | f00f41d1569a13b6a8d598d70a796ce1eef53b28 /engines/dm/loadsave.cpp | |
parent | 710464c5d23f9ef51f0a932ef6c61c1594cbb2c7 (diff) | |
download | scummvm-rg350-831eca5c42b375870b1d6063a43c7f9cbf7df3ce.tar.gz scummvm-rg350-831eca5c42b375870b1d6063a43c7f9cbf7df3ce.tar.bz2 scummvm-rg350-831eca5c42b375870b1d6063a43c7f9cbf7df3ce.zip |
DM: Refactor f304_addSkillExperience, change _g313_gameTime to int32
Diffstat (limited to 'engines/dm/loadsave.cpp')
-rw-r--r-- | engines/dm/loadsave.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dm/loadsave.cpp b/engines/dm/loadsave.cpp index 9b50351376..19df8bf80f 100644 --- a/engines/dm/loadsave.cpp +++ b/engines/dm/loadsave.cpp @@ -76,7 +76,7 @@ T0435002: warning(false, "MISSING CODE: missing check for matching format and platform in save in f435_loadgame"); - _g313_gameTime = file->readUint32BE(); + _g313_gameTime = file->readSint32BE(); // G0349_ul_LastRandomNumber = L1371_s_GlobalData.LastRandomNumber; _championMan->_g305_partyChampionCount = file->readUint16BE(); _dungeonMan->_g306_partyMapX = file->readSint16BE(); @@ -165,7 +165,7 @@ void DMEngine::f433_processCommand140_saveGame(uint16 slot, const Common::String writeSaveGameHeader(file, desc); // write C0_SAVE_PART_GLOBAL_DATA part - file->writeUint32BE(_g313_gameTime); + file->writeSint32BE(_g313_gameTime); //L1348_s_GlobalData.LastRandomNumber = G0349_ul_LastRandomNumber; file->writeUint16BE(_championMan->_g305_partyChampionCount); file->writeSint16BE(_dungeonMan->_g306_partyMapX); |