aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/module.cpp
diff options
context:
space:
mode:
authorwhitertandrek2018-03-27 13:53:03 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commitc37bd09354cb233404bec5aed6ded79412650cef (patch)
tree015edd054870708458b653a473809b4f835d15d4 /engines/pink/objects/module.cpp
parent17c2bcfb948a24f9a1d99eeac85f799d45549d9f (diff)
downloadscummvm-rg350-c37bd09354cb233404bec5aed6ded79412650cef.tar.gz
scummvm-rg350-c37bd09354cb233404bec5aed6ded79412650cef.tar.bz2
scummvm-rg350-c37bd09354cb233404bec5aed6ded79412650cef.zip
PINK: implemented drawing of transparent drawing, but it seems that original handles this a bit different.(intro of Peril first sprite keeps transparent colour index somewhere else)
Diffstat (limited to 'engines/pink/objects/module.cpp')
-rw-r--r--engines/pink/objects/module.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/pink/objects/module.cpp b/engines/pink/objects/module.cpp
index d1e16f37ee..f768020de0 100644
--- a/engines/pink/objects/module.cpp
+++ b/engines/pink/objects/module.cpp
@@ -81,7 +81,9 @@ PinkEngine *Module::getGame() const {
}
bool Module::checkValueOfVariable(Common::String &variable, Common::String &value) {
- assert(_variables.contains(variable));
+ //assert(_variables.contains(variable));
+ if (!_variables.contains(variable))
+ return value == "UNDEFINED";
return _variables[variable] == value;
}