aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-11-11 23:48:01 +0000
committerFilippos Karapetis2010-11-11 23:48:01 +0000
commit31719eeb2805f15dc385b6fc753029c8f5b1e0c8 (patch)
treefed9b1d3077a2cc545fcaffe02cc9adadcf181e4
parentee85ca00077947296c810884febbb336782608b2 (diff)
downloadscummvm-rg350-31719eeb2805f15dc385b6fc753029c8f5b1e0c8.tar.gz
scummvm-rg350-31719eeb2805f15dc385b6fc753029c8f5b1e0c8.tar.bz2
scummvm-rg350-31719eeb2805f15dc385b6fc753029c8f5b1e0c8.zip
SCI2: Make robots return immediately for now, till they're implemented
Based on a patch by lskovlun svn-id: r54214
-rw-r--r--engines/sci/engine/kgraphics.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index c10f23adfd..5382712277 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -1260,6 +1260,7 @@ reg_t kIsHiRes(EngineState *s, int argc, reg_t *argv) {
// SCI32 variant, can't work like sci16 variants
reg_t kCantBeHere32(EngineState *s, int argc, reg_t *argv) {
+ // TODO
// reg_t curObject = argv[0];
// reg_t listReference = (argc > 1) ? argv[1] : NULL_REG;
@@ -1409,6 +1410,10 @@ reg_t kRobot(EngineState *s, int argc, reg_t *argv) {
break;
case 8: // sync
//warning("kRobot(sync), obj %04x:%04x", PRINT_REG(argv[1]));
+ // HACK: Make robots return immediately for now,
+ // otherwise they just hang for a while.
+ // TODO: Replace with proper robot functionality.
+ writeSelectorValue(s->_segMan, argv[1], SELECTOR(signal), -1);
break;
default:
warning("kRobot(%d)", subop);