aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-06-18 20:43:24 +0200
committeruruk2014-06-18 20:43:24 +0200
commitfb97e24a5adfb117add2cfa959c075a2af569fad (patch)
treec92ad26b9f02f4a88d8d9e954da76878778d075b
parent26901479d3e60eed76dfd306988b27408b22e3ee (diff)
downloadscummvm-rg350-fb97e24a5adfb117add2cfa959c075a2af569fad.tar.gz
scummvm-rg350-fb97e24a5adfb117add2cfa959c075a2af569fad.tar.bz2
scummvm-rg350-fb97e24a5adfb117add2cfa959c075a2af569fad.zip
CGE2: Fix coords of misplaced speech bubbles.
The origin of the bug is that when we added the command (triggered by a mouse-click on a sprite) to display a speech bubble we checked the command's reference wrong and didn't bind (by modifying the reference) the bubble to a certain hero. So they just appeared randomly above the sprites what triggered the event, or even in worse places.
-rw-r--r--engines/cge2/snail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp
index d799f28cc1..e3c3baaccc 100644
--- a/engines/cge2/snail.cpp
+++ b/engines/cge2/snail.cpp
@@ -666,7 +666,7 @@ void CGE2Engine::sndSetVolume() {
}
void CommandHandler::addCommand(CommandType com, int ref, int val, void *ptr) {
- if (ref == 2)
+ if (ref == -2)
ref = 142 - _vm->_sex;
Command *headCmd = &_commandList[_head++];
headCmd->_commandType = com;