From c37bd09354cb233404bec5aed6ded79412650cef Mon Sep 17 00:00:00 2001 From: whitertandrek Date: Tue, 27 Mar 2018 13:53:03 +0300 Subject: 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) --- engines/pink/objects/module.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/pink/objects/module.cpp') 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; } -- cgit v1.2.3