diff options
author | Bendegúz Nagy | 2016-08-23 15:39:05 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 2bdabc3b7afe9ba857bfc2be7ac638a566d09bf4 (patch) | |
tree | b2717c0e92cc1260d0f08e5dd428409ed7f904b2 /engines/dm/dm.cpp | |
parent | 2199f879bdcd27806e304782423e2b3e838d6bbc (diff) | |
download | scummvm-rg350-2bdabc3b7afe9ba857bfc2be7ac638a566d09bf4.tar.gz scummvm-rg350-2bdabc3b7afe9ba857bfc2be7ac638a566d09bf4.tar.bz2 scummvm-rg350-2bdabc3b7afe9ba857bfc2be7ac638a566d09bf4.zip |
DM: Add target and original platform to save files
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r-- | engines/dm/dm.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp index bfb6147f9f..ceb3ae5ef9 100644 --- a/engines/dm/dm.cpp +++ b/engines/dm/dm.cpp @@ -146,7 +146,7 @@ int16 M38_distance(int16 mapx1, int16 mapy1, int16 mapx2, int16 mapy2) { return ABS(mapx1 - mapx2) + ABS(mapy1 - mapy2); } -DMEngine::DMEngine(OSystem *syst, const ADGameDescription *desc) : Engine(syst), _console(nullptr), _gameVersion(desc) { +DMEngine::DMEngine(OSystem *syst, const DMADGameDescription *desc) : Engine(syst), _console(nullptr), _gameVersion(desc) { // register random source _rnd = new Common::RandomSource("dm"); @@ -166,7 +166,6 @@ DMEngine::DMEngine(OSystem *syst, const ADGameDescription *desc) : Engine(syst), _sound = nullptr; _engineShouldQuit = false; - _g528_saveFormat = k_FORMAT_NONE; _g526_dungeonId = 0; _g298_newGame = 0; @@ -520,7 +519,7 @@ void DMEngine::f2_gameloop() { } _system->delayMillis(2); - if (++vblankCounter >= _g318_waitForInputMaxVerticalBlankCount * 5) + if (++vblankCounter >= _g318_waitForInputMaxVerticalBlankCount * 4) _g321_stopWaitingForPlayerInput = true; } while (!_g321_stopWaitingForPlayerInput || !_g301_gameTimeTicking); @@ -1082,5 +1081,5 @@ void DMEngine::f445_STARTEND_fuseSequenceUpdate() { The ending animation when Lord Chaos is fused plays too quickly because the execution speed is not limited */ } -Common::Language DMEngine::getGameLanguage() { return _gameVersion->language; } +Common::Language DMEngine::getGameLanguage() { return _gameVersion->_desc.language; } } // End of namespace DM |