From 56490360c211fefda19f31b889f9cd38238b1483 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 25 Oct 2016 23:18:33 +0200 Subject: FULLPIPE: Fix if statement. Thanks to PVS-Studio --- engines/fullpipe/statics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/fullpipe') 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); -- cgit v1.2.3