aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-25 23:18:33 +0200
committerEugene Sandulenko2016-10-26 01:51:39 +0200
commit56490360c211fefda19f31b889f9cd38238b1483 (patch)
treee9e988cf173cd22ba52e94b1d31a2266c415ac84 /engines/fullpipe
parent6c54d5e0206a7ec28d6661bfed8da8602aae755b (diff)
downloadscummvm-rg350-56490360c211fefda19f31b889f9cd38238b1483.tar.gz
scummvm-rg350-56490360c211fefda19f31b889f9cd38238b1483.tar.bz2
scummvm-rg350-56490360c211fefda19f31b889f9cd38238b1483.zip
FULLPIPE: Fix if statement. Thanks to PVS-Studio
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/statics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 404a8edecc..bf769e2f61 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -547,7 +547,7 @@ void Movement::draw(bool flipFlag, int angle) {
if (flipFlag) {
bmp->flipVertical()->drawShaded(1, x, y + 30 + _currDynamicPhase->_rect->bottom, _currDynamicPhase->_paletteData, _currDynamicPhase->_alpha);
- } if (angle) {
+ } else if (angle) {
bmp->drawRotated(x, y, angle, _currDynamicPhase->_paletteData, _currDynamicPhase->_alpha);
} else {
bmp->putDib(x, y, (int32 *)_currDynamicPhase->_paletteData, _currDynamicPhase->_alpha);