diff options
author | Bendegúz Nagy | 2016-07-12 08:53:34 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 0f76448e5794bea0097f1c806c67623093c79cf8 (patch) | |
tree | 067d737a87f71bae6d87e7fde0a496a65b2c86fc /engines/dm/dm.cpp | |
parent | 3e40cc46e3de279f83ef4037ad3462b24eb395fd (diff) | |
download | scummvm-rg350-0f76448e5794bea0097f1c806c67623093c79cf8.tar.gz scummvm-rg350-0f76448e5794bea0097f1c806c67623093c79cf8.tar.bz2 scummvm-rg350-0f76448e5794bea0097f1c806c67623093c79cf8.zip |
DM: Fix up main loop
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r-- | engines/dm/dm.cpp | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp index 932de5a60c..dbf7a9577a 100644 --- a/engines/dm/dm.cpp +++ b/engines/dm/dm.cpp @@ -324,8 +324,6 @@ void DMEngine::f2_gameloop() { _dungeonMan->_g306_partyMapX = 10; _dungeonMan->_g307_partyMapY = 4; _dungeonMan->_g308_partyDir = kDirNorth; - warning(false, "DUMMY CODE: setting InventoryMan::_g432_inventoryChampionOrdinal to zero"); - _inventoryMan->_g432_inventoryChampionOrdinal = 0; while (true) { if (_g327_newPartyMapIndex != kM1_mapIndexNone) { @@ -359,23 +357,32 @@ T0002002: _eventMan->f77_hideMouse(); } } - + // F0363_COMMAND_HighlightBoxDisable(); + // F0065_SOUND_PlayPendingSound_CPSD(); + // F0320_CHAMPION_ApplyAndDrawPendingDamageAndWounds if (_championMan->_g303_partyDead) break; _g313_gameTime++; if (!(_g313_gameTime & 511)) _inventoryMan->f338_decreaseTorchesLightPower(); - if (_g310_disabledMovementTicks) { - _g310_disabledMovementTicks--; - } - if (_championMan->_g407_party._freezeLifeTicks) { + + if (_g310_disabledMovementTicks) + _g310_disabledMovementTicks--; + + if (_championMan->_g407_party._freezeLifeTicks) _championMan->_g407_party._freezeLifeTicks -= 1; - } + _menuMan->f390_refreshActionAreaAndSetChampDirMaxDamageReceived(); - if (_g311_projectileDisableMovementTicks) - _g311_projectileDisableMovementTicks--; + // if (!((int)_vm->_g313_gameTime & (_vm->_championMan->_g300_partyIsSleeping ? 15 : 63))) { + // F0331_CHAMPION_ApplyTimeEffects_CPSF(); + // } + + if (_g310_disabledMovementTicks) + _g310_disabledMovementTicks--; + + // F0044_TEXT_MESSAGEAREA_ClearExpiredRows(); _g321_stopWaitingForPlayerInput = false; @@ -395,7 +402,7 @@ T0002002: _eventMan->f380_processCommandQueue(); _displayMan->updateScreen(); // if (!_vm->_g321_stopWaitingForPlayerInput) { - warning(false, "MISSING CODE: F0363_COMMAND_HighlightBoxDisable"); + // F0363_COMMAND_HighlightBoxDisable(); // } } while (!_g321_stopWaitingForPlayerInput || !_g301_gameTimeTicking); |