diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dm/champion.h | 7 | ||||
-rw-r--r-- | engines/dm/eventman.cpp | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/engines/dm/champion.h b/engines/dm/champion.h index 85afd6f6f9..15a07bebe7 100644 --- a/engines/dm/champion.h +++ b/engines/dm/champion.h @@ -55,6 +55,7 @@ public: void setMapX(uint16 val) { _scent = (_scent & ~0x1F) & (val & 0x1F); } void setMapY(uint16 val) { _scent = (_scent & ~(0x1F << 5)) & (val & 0x1F); } void setMapIndex(uint16 val) { _scent = (_scent & ~(0x1F << 10)) & (val & 0x3F); } + void setVal(uint16 val) { _scent = val; } uint16 toUint16() { return _scent; } }; // @ SCENT @@ -90,8 +91,12 @@ public: _scentCount = 0; _freezeLifeTicks = 0; _firstScentIndex = 0; - for (int16 i = 0; i < 24; ++i) + + _lastScentIndex = 0; + for (int16 i = 0; i < 24; ++i) { + _scents[i].setVal(0); _scentStrengths[i] = 0; + } _event71Count_Invisibility = 0; } }; // @ PARTY diff --git a/engines/dm/eventman.cpp b/engines/dm/eventman.cpp index 6e868f73de..d6790b4fcf 100644 --- a/engines/dm/eventman.cpp +++ b/engines/dm/eventman.cpp @@ -747,7 +747,7 @@ void EventManager::f380_processCommandQueue() { if (cmdType == k147_CommandFreezeGame) { _vm->_g301_gameTimeTicking = false; _vm->_menuMan->f456_drawDisabledMenu(); - _vm->_displayMan->f134_fillBitmap(_vm->_displayMan->_g296_bitmapViewport, k0_ColorBlack, 224, 136); + _vm->_displayMan->f134_fillBitmap(_vm->_displayMan->_g296_bitmapViewport, k0_ColorBlack, 112, 136); // TODO: localization _vm->_textMan->f40_printTextToBitmap(_vm->_displayMan->_g296_bitmapViewport, k112_byteWidthViewport, 81, 69, k4_ColorCyan, k0_ColorBlack, "GAME FROZEN", k136_heightViewport); |