aboutsummaryrefslogtreecommitdiff
path: root/engines/prince
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-14 11:34:41 +0200
committerEugene Sandulenko2016-05-14 11:34:41 +0200
commita088d1fb10813559bdef4c470c877116cee0fc82 (patch)
treeb4bf58833f0c2f3f82c8aa2c47c9f1a90d903ff6 /engines/prince
parent4435902f1e1d9265add6f23966f42b6cce753cd0 (diff)
downloadscummvm-rg350-a088d1fb10813559bdef4c470c877116cee0fc82.tar.gz
scummvm-rg350-a088d1fb10813559bdef4c470c877116cee0fc82.tar.bz2
scummvm-rg350-a088d1fb10813559bdef4c470c877116cee0fc82.zip
PRINCE: Remove redundant check
Diffstat (limited to 'engines/prince')
-rw-r--r--engines/prince/prince.cpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index b39d26e056..f1fd5a25d3 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -1543,20 +1543,18 @@ void PrinceEngine::showAnim(Anim &anim) {
// make_special_shadow
if ((anim._flags & 0x80)) {
- if (animSurface) {
- DrawNode newDrawNode;
- newDrawNode.posX = x;
- newDrawNode.posY = y + animSurface->h - anim._shadowBack;
- newDrawNode.posZ = Hero::kHeroShadowZ;
- newDrawNode.width = 0;
- newDrawNode.height = 0;
- newDrawNode.scaleValue = _scaleValue;
- newDrawNode.originalRoomSurface = nullptr;
- newDrawNode.data = this;
- newDrawNode.drawFunction = &Hero::showHeroShadow;
- newDrawNode.s = animSurface;
- _drawNodeList.push_back(newDrawNode);
- }
+ DrawNode newDrawNode;
+ newDrawNode.posX = x;
+ newDrawNode.posY = y + animSurface->h - anim._shadowBack;
+ newDrawNode.posZ = Hero::kHeroShadowZ;
+ newDrawNode.width = 0;
+ newDrawNode.height = 0;
+ newDrawNode.scaleValue = _scaleValue;
+ newDrawNode.originalRoomSurface = nullptr;
+ newDrawNode.data = this;
+ newDrawNode.drawFunction = &Hero::showHeroShadow;
+ newDrawNode.s = animSurface;
+ _drawNodeList.push_back(newDrawNode);
}
//ShowFrameCodeShadow