aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Montoir2003-12-15 13:00:48 +0000
committerGregory Montoir2003-12-15 13:00:48 +0000
commitaa2173868b387edb82e2409b3e15005e83fc07ce (patch)
tree826dab36dbb57624d8c03126d5397c74cc52d3d0
parenteb090ed5a682099fd45bacaa10a588cad656d800 (diff)
downloadscummvm-rg350-aa2173868b387edb82e2409b3e15005e83fc07ce.tar.gz
scummvm-rg350-aa2173868b387edb82e2409b3e15005e83fc07ce.tar.bz2
scummvm-rg350-aa2173868b387edb82e2409b3e15005e83fc07ce.zip
clear command text in pinnacle room when there is no valid place under the cursor
svn-id: r11652
-rw-r--r--queen/logic.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/queen/logic.cpp b/queen/logic.cpp
index aa35d99f23..0daa49a94b 100644
--- a/queen/logic.cpp
+++ b/queen/logic.cpp
@@ -2163,6 +2163,7 @@ void Logic::handlePinnacleRoom() {
update();
_vm->display()->palFadeIn(0, 223, ROOM_JUNGLE_PINNACLE, joe->active, joe->x, joe->y);
+ _vm->graphics()->textCurrentColor(INK_PINNACLE_ROOM);
_entryObj = 0;
uint16 prevObj = 0;
@@ -2179,6 +2180,8 @@ void Logic::handlePinnacleRoom() {
joe->x = piton->x = 3 * mx / 4 + 200;
joe->frameNum = mx / 36 + 43 + FRAMES_JOE_XTRA;
+ _vm->graphics()->textClear(5, 5);
+
uint16 curObj = findObjectUnderCursor(mx, my);
if (curObj != 0 && curObj != prevObj) {
_entryObj = 0;
@@ -2188,7 +2191,6 @@ void Logic::handlePinnacleRoom() {
_entryObj = objData->entryObj;
char textCmd[CmdText::MAX_COMMAND_LEN];
sprintf(textCmd, "%s %s", verbName(VERB_WALK_TO), _objName[objData->name]);
- _vm->graphics()->textCurrentColor(INK_PINNACLE_ROOM);
_vm->graphics()->textSetCentered(5, textCmd);
}
prevObj = curObj;