From 4fa0740a279b6e765db31bad3ec5d53ddef4ac2e Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 2 Apr 2008 03:16:34 +0000 Subject: Implemented death menu. This also fixes bug #1926892 "HoF: Odd behaviour when Zanthia gets killed(?)". svn-id: r31360 --- engines/kyra/kyra_v2.cpp | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'engines/kyra/kyra_v2.cpp') diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp index 04c98ca953..698a3484f6 100644 --- a/engines/kyra/kyra_v2.cpp +++ b/engines/kyra/kyra_v2.cpp @@ -411,11 +411,13 @@ void KyraEngine_v2::runLoop() { _quitFlag = false; _runFlag = true; while (!_quitFlag && _runFlag) { - //if (_deathHandler >= 0) { - // removeHandItem(); - // waitTicks(5); - // sub_270A0(); - //} + if (_deathHandler >= 0) { + removeHandItem(); + delay(5); + _drawNoShapeFlag = 0; + _gui->optionsButton(0); + _deathHandler = -1; + } if (_system->getMillis() > _nextIdleAnim) showIdleAnim(); @@ -770,6 +772,10 @@ void KyraEngine_v2::updateInput() { _eventList.push_back(Event(event, true)); break; + case Common::EVENT_MOUSEMOVE: + _eventList.push_back(event); + break; + default: break; } @@ -806,11 +812,18 @@ int KyraEngine_v2::checkInput(Button *buttonList, bool mainLoop) { } break; + case Common::EVENT_MOUSEMOVE: { + Common::Point pos = getMousePos(); + _mouseX = pos.x; + _mouseY = pos.y; + _screen->updateScreen(); + } break; + case Common::EVENT_LBUTTONUP: { Common::Point pos = getMousePos(); _mouseX = pos.x; _mouseY = pos.y; - keys = 198; + keys = 199; breakLoop = true; } break; -- cgit v1.2.3