From: Cyril Roelandt Date: Mon, 3 Sep 2012 00:59:41 +0000 (+0200) Subject: Fix building with clang. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7f75b5ae4d008bb999b4d2966f55ea5865a92c30;p=quix0rs-blobwars.git Fix building with clang. 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. --- diff --git a/src/player.cpp b/src/player.cpp index cc793b9..34aeaa8 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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); }