aboutsummaryrefslogtreecommitdiff
path: root/engines/tony
diff options
context:
space:
mode:
authorAlyssa Milburn2012-08-29 09:13:37 +0200
committerAlyssa Milburn2012-08-29 09:13:43 +0200
commit985151fe13d878739287be7827e9b6168010e3ea (patch)
treecf06ae992000ae92fb13b1356d0910f6a30f9de6 /engines/tony
parenta6673aaf906505341d8ef259db69efc0f4c540fe (diff)
downloadscummvm-rg350-985151fe13d878739287be7827e9b6168010e3ea.tar.gz
scummvm-rg350-985151fe13d878739287be7827e9b6168010e3ea.tar.bz2
scummvm-rg350-985151fe13d878739287be7827e9b6168010e3ea.zip
TONY: Limit effect of cursor workaround.
This avoids incorrect hotspot offsets.
Diffstat (limited to 'engines/tony')
-rw-r--r--engines/tony/game.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/tony/game.cpp b/engines/tony/game.cpp
index 0793d97215..00aa9c1109 100644
--- a/engines/tony/game.cpp
+++ b/engines/tony/game.cpp
@@ -1485,15 +1485,15 @@ void RMPointer::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim
if (_ctx->n == TA_COMBINE)
_ctx->n = TA_USE;
- // WORKAROUND: updateCursor gets called too early sometimes (for example, when
- // the cursor is released over the TA_PERORATE option), via setAction.
- if (_ctx->n > 4)
- _ctx->n = 0;
-
_cursorHotspot = _hotspot[_ctx->n];
// Call the Draw method of the pointer
if (_nCurSpecialPointer == 0) {
+ // WORKAROUND: updateCursor gets called too early sometimes (for example, when
+ // the cursor is released over the TA_PERORATE option), via setAction.
+ if (_ctx->n > 4)
+ _ctx->n = 0;
+
CORO_INVOKE_2(_pointer[_ctx->n]->draw, bigBuf, prim);
} else {
if (_nCurSpecialPointer == PTR_CUSTOM)