GRIM: Let the actors turn and update also when the mode is ENGINE_MODE_SMUSH. Fix #249

This commit is contained in:
Giulio Camuffo
2011-07-13 14:44:45 +02:00
parent 02c8645f5a
commit 4e41869b54
+1 -1
View File
@@ -888,7 +888,7 @@ void GrimEngine::luaUpdate() {
// Run asynchronous tasks
lua_runtasks();
if (_mode == ENGINE_MODE_NORMAL) {
if (_mode == ENGINE_MODE_NORMAL || _mode == ENGINE_MODE_SMUSH) {
// Update the actors. Do it here so that we are sure to react asap to any change
// in the actors state caused by lua.
for (ActorListType::iterator i = _actors.begin(); i != _actors.end(); ++i) {