diff options
author | Bendegúz Nagy | 2016-07-26 00:18:31 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 715ef2d404994737f72de13fd4824ca1ec1708c1 (patch) | |
tree | f27a5cd83130cee279753b90e40143d84832ffdc /engines/dm/dm.cpp | |
parent | 9fd7c561986357ea539391cb0d4be238b27ac96d (diff) | |
download | scummvm-rg350-715ef2d404994737f72de13fd4824ca1ec1708c1.tar.gz scummvm-rg350-715ef2d404994737f72de13fd4824ca1ec1708c1.tar.bz2 scummvm-rg350-715ef2d404994737f72de13fd4824ca1ec1708c1.zip |
DM: Debug loading savegames, add missing save loading parts
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r-- | engines/dm/dm.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp index cd69479961..dc778aa734 100644 --- a/engines/dm/dm.cpp +++ b/engines/dm/dm.cpp @@ -277,8 +277,11 @@ void DMEngine::f462_startGame() { f3_processNewPartyMap(_dungeonMan->_g309_partyMapIndex); if (!_g298_newGame) { - warning(false, "TODO: loading game"); - assert(false); + _displayMan->_g578_useByteBoxCoordinates = false; + f22_delay(1); + _displayMan->D24_fillScreenBox(g61_boxScreenTop, k0_ColorBlack); + _displayMan->D24_fillScreenBox(g62_boxScreenRight, k0_ColorBlack); + _displayMan->D24_fillScreenBox(g63_boxScreenBottom, k0_ColorBlack); } else { _displayMan->_g578_useByteBoxCoordinates = false; _displayMan->D24_fillScreenBox(g61_boxScreenTop, k0_ColorBlack); @@ -331,10 +334,12 @@ Common::Error DMEngine::run() { } void DMEngine::f2_gameloop() { - warning(false, "DUMMY CODE: SETTING PARTY POS AND DIRECTION"); - _dungeonMan->_g306_partyMapX = 9; - _dungeonMan->_g307_partyMapY = 9; - _dungeonMan->_g308_partyDir = kDirWest; + if (_g298_newGame) { + warning(false, "DUMMY CODE: SETTING PARTY POS AND DIRECTION"); + _dungeonMan->_g306_partyMapX = 9; + _dungeonMan->_g307_partyMapY = 9; + _dungeonMan->_g308_partyDir = kDirWest; + } _g318_waitForInputMaxVerticalBlankCount = 10; while (true) { |