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
This commit is contained in:
Kari Salminen 2008-08-05 12:58:23 +00:00
parent e2e0b1393b
commit 966b5eb94e

View File

@ -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) {