diff options
author | Kari Salminen | 2008-08-05 12:58:23 +0000 |
---|---|---|
committer | Kari Salminen | 2008-08-05 12:58:23 +0000 |
commit | 966b5eb94eec33f52536e2e4cf9cf3b359fcbaf8 (patch) | |
tree | 0f25fbb2fc4599b0d5a12d4bc55b10e19702d27c | |
parent | e2e0b1393b1dc73850d216c2527e40b4b87e38ef (diff) | |
download | scummvm-rg350-966b5eb94eec33f52536e2e4cf9cf3b359fcbaf8.tar.gz scummvm-rg350-966b5eb94eec33f52536e2e4cf9cf3b359fcbaf8.tar.bz2 scummvm-rg350-966b5eb94eec33f52536e2e4cf9cf3b359fcbaf8.zip |
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
-rw-r--r-- | engines/cine/various.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |