aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2014-10-09 21:36:42 +0200
committerStrangerke2014-10-09 21:37:26 +0200
commit2003a4a2b4f745b0b4ff3fe7e9ff17600b43eeab (patch)
treee4a0cc525355ce5ea4614b8c0ae55c91d5633c96
parentb5536e3a27172842fbfe412097de29f75880afd9 (diff)
downloadscummvm-rg350-2003a4a2b4f745b0b4ff3fe7e9ff17600b43eeab.tar.gz
scummvm-rg350-2003a4a2b4f745b0b4ff3fe7e9ff17600b43eeab.tar.bz2
scummvm-rg350-2003a4a2b4f745b0b4ff3fe7e9ff17600b43eeab.zip
TSAGE: R2R - Fix a bug in scene 1337
The bug was a rare skip of turn when playing a counter-attack card. Removing the call to handleNextTurn was introducing a bug related to the cursor caching as well as an even rarer eternal loop.
-rw-r--r--engines/tsage/ringworld2/ringworld2_scenes1.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes1.cpp b/engines/tsage/ringworld2/ringworld2_scenes1.cpp
index e29f336698..591ed30cfd 100644
--- a/engines/tsage/ringworld2/ringworld2_scenes1.cpp
+++ b/engines/tsage/ringworld2/ringworld2_scenes1.cpp
@@ -5095,7 +5095,12 @@ void Scene1337::playAntiDelayCard(Card *card, Card *dest) {
_actionItem.setAction(&_action8);
- handleNextTurn();
+ // WORKAROUND: Restore the default cursor and for a call to signal.
+ // This works around the cursor caching we got rid of, and avoid
+ // the game ends in an eternal loop when a player reacts to another player
+ // attack.
+ setCursorData(5, 1, 4);
+ signal();
}