aboutsummaryrefslogtreecommitdiff
path: root/saga/sfuncs.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-01-17 07:21:08 +0000
committerTorbjörn Andersson2005-01-17 07:21:08 +0000
commitf8865304bde2e79d25727abebcbc33033b051598 (patch)
tree80a4cde902bab4874dc094d7f1729fe318156586 /saga/sfuncs.cpp
parentd6ea15bf1f50f9167cbd228df9f99e9ed67becbb (diff)
downloadscummvm-rg350-f8865304bde2e79d25727abebcbc33033b051598.tar.gz
scummvm-rg350-f8865304bde2e79d25727abebcbc33033b051598.tar.bz2
scummvm-rg350-f8865304bde2e79d25727abebcbc33033b051598.zip
Initialize a few variables to fix Valgrind warnings. (I'm hoping they were
the reason the ITE intro crashed for me.) I still get read warnings in Sprite::decodeRLEBuffer() though. Also added a couple of hacks to keep the IHNM intro alive. Once we support IHNM actors, we'll be able to remove them. svn-id: r16579
Diffstat (limited to 'saga/sfuncs.cpp')
-rw-r--r--saga/sfuncs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp
index d3dc57858f..31ae5fd28e 100644
--- a/saga/sfuncs.cpp
+++ b/saga/sfuncs.cpp
@@ -934,6 +934,11 @@ int Script::sfPlaceActor(SCRIPTFUNC_PARAMS) {
debug(1, "sfPlaceActor(%d, %d, %d, %d, %d, %d)", actorId, actorLocation.x,
actorLocation.y, actorDirection, frameType, frameOffset);
+ if (_vm->getGameType() == GType_IHNM) {
+ warning("Actors aren't implemented for IHNM yet");
+ return SUCCESS;
+ }
+
actor = _vm->_actor->getActor(actorId);
actor->location.x = actorLocation.x;
actor->location.y = actorLocation.y;