aboutsummaryrefslogtreecommitdiff
path: root/saga/actor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/actor.cpp')
-rw-r--r--saga/actor.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp
index f0af7df1be..6b029ec47d 100644
--- a/saga/actor.cpp
+++ b/saga/actor.cpp
@@ -1178,7 +1178,11 @@ void Actor::handleActions(int msec, bool setup) {
}
-int Actor::direct(int msec) {
+void Actor::direct(int msec) {
+
+ if (_vm->_scene->_entryList.entryListCount == 0) {
+ return;
+ }
// FIXME: HACK. This should be turned into cycle event.
_lastTickMsec += msec;
@@ -1191,7 +1195,6 @@ int Actor::direct(int msec) {
//process speech
handleSpeech(msec);
- return SUCCESS;
}
@@ -1315,6 +1318,10 @@ void Actor::drawActors() {
return;
}
+ if (_vm->_scene->_entryList.entryListCount == 0) {
+ return;
+ }
+
CommonObjectOrderList::iterator drawOrderIterator;
CommonObjectDataPointer drawObject;
int frameNumber;