From 966b5eb94eec33f52536e2e4cf9cf3b359fcbaf8 Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Tue, 5 Aug 2008 12:58:23 +0000 Subject: Fix prompt updating regression introduced in r32257: Previously prompt didn't get updated all the time, like e.g. when selecting EXAMINE and moving the cursor over to DOOR and then moving the cursor to a place where there was no selectable object. The prompt would've still shown "EXAMINE DOOR", now it shows just "EXAMINE" which is correct AFAIK. svn-id: r33637 --- engines/cine/various.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp index 58b0c9f269..ecff8b263b 100644 --- a/engines/cine/various.cpp +++ b/engines/cine/various.cpp @@ -1518,6 +1518,7 @@ void makeCommandLine(void) { } if (!disableSystemMenu) { + isDrawCommandEnabled = 1; renderer->setCommand(commandBuffer); } } @@ -1690,6 +1691,11 @@ uint16 executePlayerInput(void) { } if (allowPlayerInput) { + if (isDrawCommandEnabled) { + renderer->setCommand(commandBuffer); + isDrawCommandEnabled = 0; + } + getMouseData(mouseUpdateStatus, &mouseButton, &mouseX, &mouseY); while (mouseButton && currentEntry < 200) { -- cgit v1.2.3