aboutsummaryrefslogtreecommitdiff
path: root/engines/cge
diff options
context:
space:
mode:
authorStrangerke2014-03-02 20:02:58 +0100
committerStrangerke2014-03-02 20:44:22 +0100
commitbc58a42574c9f5ea0963f9f4883630ca0e23152a (patch)
treed04f471b64f8f2302ccb8ecb3c33c3d636b52714 /engines/cge
parent3c41d9b9cb481bd0cdf0a9847f3ed5e8b50c6320 (diff)
downloadscummvm-rg350-bc58a42574c9f5ea0963f9f4883630ca0e23152a.tar.gz
scummvm-rg350-bc58a42574c9f5ea0963f9f4883630ca0e23152a.tar.bz2
scummvm-rg350-bc58a42574c9f5ea0963f9f4883630ca0e23152a.zip
CGE: Move hero shadow check inside hero check in sceneUp()
Diffstat (limited to 'engines/cge')
-rw-r--r--engines/cge/cge_main.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index 6440058a0c..260fd8997a 100644
--- a/engines/cge/cge_main.cpp
+++ b/engines/cge/cge_main.cpp
@@ -656,14 +656,15 @@ void CGEEngine::sceneUp() {
_vga->copyPage(0, 1);
selectPocket(-1);
- if (_hero)
+ if (_hero) {
_vga->_showQ->insert(_vga->_showQ->remove(_hero));
- if (_shadow) {
- _vga->_showQ->remove(_shadow);
- _shadow->makeXlat(_vga->glass(_vga->_sysPal, 204, 204, 204));
- _vga->_showQ->insert(_shadow, _hero);
- _shadow->_z = _hero->_z;
+ if (_shadow) {
+ _vga->_showQ->remove(_shadow);
+ _shadow->makeXlat(_vga->glass(_vga->_sysPal, 204, 204, 204));
+ _vga->_showQ->insert(_shadow, _hero);
+ _shadow->_z = _hero->_z;
+ }
}
feedSnail(_vga->_showQ->locate(BakRef + 999), kTake);
_vga->show();