]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Fix building with clang.
authorCyril Roelandt <tipecaml@gmail.com>
Mon, 3 Sep 2012 00:59:41 +0000 (02:59 +0200)
committerGuus Sliepen <guus@debian.org>
Tue, 4 Sep 2012 09:12:36 +0000 (11:12 +0200)
blobwars currently FTBFS with clang 3.1 (the full build log can be found at
http://clang.debian.net/logs/2012-06-23/blobwars_1.19-2_unstable_clang.log).
The attached patch should fix this issue.

src/player.cpp

index cc793b9faa67d9970c9c8275ecb096a54e425d4a..34aeaa8478bd9f3a342f764f94d67cb312848aba 100644 (file)
@@ -290,7 +290,7 @@ void doPlayer()
                                        Math::addBit(&player.flags, ENT_FLIES);
                                        player.setSprites(graphics.getSprite("JPBobRight", true), graphics.getSprite("JPBobLeft", true), graphics.getSprite("BobSpin", true));
                                }
-                               else if ((player.environment == ENV_WATER))
+                               else if (player.environment == ENV_WATER)
                                {
                                        engine.setInfoMessage("Jetpack cannot be used underwater", 0, INFO_NORMAL);
                                }