From 2003a4a2b4f745b0b4ff3fe7e9ff17600b43eeab Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 9 Oct 2014 21:36:42 +0200 Subject: 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. --- engines/tsage/ringworld2/ringworld2_scenes1.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/tsage/ringworld2') 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(); } -- cgit v1.2.3