diff options
author | whitertandrek | 2018-03-27 13:53:03 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | c37bd09354cb233404bec5aed6ded79412650cef (patch) | |
tree | 015edd054870708458b653a473809b4f835d15d4 /engines/pink/objects/module.cpp | |
parent | 17c2bcfb948a24f9a1d99eeac85f799d45549d9f (diff) | |
download | scummvm-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.cpp | 4 |
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; } |