diff options
author | Nicola Mettifogo | 2008-02-02 13:57:29 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-02-02 13:57:29 +0000 |
commit | ed09766accb9cf677bf88802d7d268b06698a6bd (patch) | |
tree | 7219ef556a50c46a41909ee38f42ca6ee478b4b7 /engines/parallaction/exec_ns.cpp | |
parent | 9f3ecd64092f5765c0b9952b10ddc223858ac7eb (diff) | |
download | scummvm-rg350-ed09766accb9cf677bf88802d7d268b06698a6bd.tar.gz scummvm-rg350-ed09766accb9cf677bf88802d7d268b06698a6bd.tar.bz2 scummvm-rg350-ed09766accb9cf677bf88802d7d268b06698a6bd.zip |
BRA now loads and displays location backgrounds (at least in the intro).
svn-id: r30740
Diffstat (limited to 'engines/parallaction/exec_ns.cpp')
-rw-r--r-- | engines/parallaction/exec_ns.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/engines/parallaction/exec_ns.cpp b/engines/parallaction/exec_ns.cpp index 9a15bbfdf5..0c04f566fc 100644 --- a/engines/parallaction/exec_ns.cpp +++ b/engines/parallaction/exec_ns.cpp @@ -335,13 +335,14 @@ void Parallaction_ns::drawAnimations() { else layer = _gfx->_backgroundInfo.getLayer(v18->_top + v18->height()); - - _gfx->showGfxObj(obj, true); - obj->frame = frame; - obj->x = v18->_left; - obj->y = v18->_top; - obj->z = v18->_z; - obj->layer = layer; + if (obj) { + _gfx->showGfxObj(obj, true); + obj->frame = frame; + obj->x = v18->_left; + obj->y = v18->_top; + obj->z = v18->_z; + obj->layer = layer; + } } if (((v18->_flags & kFlagsActive) == 0) && (v18->_flags & kFlagsRemove)) { @@ -352,7 +353,9 @@ void Parallaction_ns::drawAnimations() { if ((v18->_flags & kFlagsActive) && (v18->_flags & kFlagsRemove)) { v18->_flags &= ~kFlagsActive; v18->_flags |= kFlagsRemove; - _gfx->showGfxObj(obj, false); + if (obj) { + _gfx->showGfxObj(obj, false); + } } } @@ -407,7 +410,9 @@ label1: } _char._ani._z = _char._ani.height() + _char._ani._top; - _char._ani.gfxobj->z = _char._ani._z; + if (_char._ani.gfxobj) { + _char._ani.gfxobj->z = _char._ani._z; + } modCounter++; return; |