aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/wage.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-04 12:06:47 +0100
committerEugene Sandulenko2016-01-04 12:06:47 +0100
commit3b48d90f13159afc3b877929b63bea6a8467694c (patch)
tree9a03fe7ad0cab93fbc0a90678947b74788ef2eb2 /engines/wage/wage.cpp
parente7eb7ffc810aed64ad3837484f3a5c0bfa001d65 (diff)
downloadscummvm-rg350-3b48d90f13159afc3b877929b63bea6a8467694c.tar.gz
scummvm-rg350-3b48d90f13159afc3b877929b63bea6a8467694c.tar.bz2
scummvm-rg350-3b48d90f13159afc3b877929b63bea6a8467694c.zip
WAGE: Mark scene as dirty of some object was moved to/from it
Diffstat (limited to 'engines/wage/wage.cpp')
-rw-r--r--engines/wage/wage.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp
index fa00618014..6cf9e39941 100644
--- a/engines/wage/wage.cpp
+++ b/engines/wage/wage.cpp
@@ -308,6 +308,18 @@ void WageEngine::onMove(Designed *what, Designed *from, Designed *to) {
return;
}
+ if (!_temporarilyHidden) {
+ assert(what);
+ assert(from);
+ assert(to);
+ debug(6, "move: %s, %s -> %s", what->_name.c_str(), from->_name.c_str(), to->_name.c_str());
+ }
+
+ if (from == currentScene || to == currentScene ||
+ (what->_classType == CHR && ((Chr *)what)->_currentScene == currentScene) ||
+ (what->_classType == OBJ && ((Obj *)what)->_currentScene == currentScene))
+ _gui->setSceneDirty();
+
if (what != player && what->_classType == CHR) {
Chr *chr = (Chr *)what;
if (to == _world->_storageScene) {