aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/ringworld2
diff options
context:
space:
mode:
authorPaul Gilbert2011-12-08 15:16:00 +1100
committerPaul Gilbert2011-12-08 15:16:00 +1100
commitfee917cc052a2b7bb086a8d14ba8313bc8e75fa6 (patch)
tree44c60bb9c10e34a489253ae73eda5d54fe1bc068 /engines/tsage/ringworld2
parenteb862627f41d49e1811872c855f1a76616645c11 (diff)
downloadscummvm-rg350-fee917cc052a2b7bb086a8d14ba8313bc8e75fa6.tar.gz
scummvm-rg350-fee917cc052a2b7bb086a8d14ba8313bc8e75fa6.tar.bz2
scummvm-rg350-fee917cc052a2b7bb086a8d14ba8313bc8e75fa6.zip
TSAGE: Fix crash in R2R fallback scene display method
Diffstat (limited to 'engines/tsage/ringworld2')
-rw-r--r--engines/tsage/ringworld2/ringworld2_logic.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_logic.cpp b/engines/tsage/ringworld2/ringworld2_logic.cpp
index 19b4bb6513..e740e14e10 100644
--- a/engines/tsage/ringworld2/ringworld2_logic.cpp
+++ b/engines/tsage/ringworld2/ringworld2_logic.cpp
@@ -244,14 +244,16 @@ void SceneExt::loadScene(int sceneNum) {
bool SceneExt::display(CursorType action) {
switch (action) {
+ case CURSOR_CROSSHAIRS:
+ return false;
case CURSOR_LOOK:
- SceneItem::display2(9000, R2_GLOBALS._randomSource.getRandomNumber(2));
+ SceneItem::display2(1, R2_GLOBALS._randomSource.getRandomNumber(4));
break;
case CURSOR_USE:
- SceneItem::display2(9000, R2_GLOBALS._randomSource.getRandomNumber(2) + 6);
+ SceneItem::display2(1, R2_GLOBALS._randomSource.getRandomNumber(4) + 5);
break;
case CURSOR_TALK:
- SceneItem::display2(9000, R2_GLOBALS._randomSource.getRandomNumber(2) + 3);
+ SceneItem::display2(1, R2_GLOBALS._randomSource.getRandomNumber(4) + 10);
break;
default:
return false;