[Scummvm-git-logs] scummvm master -> 56490360c211fefda19f31b889f9cd38238b1483

sev- sev at scummvm.org
Wed Oct 26 01:51:45 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
56490360c2 FULLPIPE: Fix if statement. Thanks to PVS-Studio


Commit: 56490360c211fefda19f31b889f9cd38238b1483
    https://github.com/scummvm/scummvm/commit/56490360c211fefda19f31b889f9cd38238b1483
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-10-26T01:51:39+02:00

Commit Message:
FULLPIPE: Fix if statement. Thanks to PVS-Studio

Changed paths:
    engines/fullpipe/statics.cpp



diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 404a8ed..bf769e2 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);





More information about the Scummvm-git-logs mailing list