From 7f75b5ae4d008bb999b4d2966f55ea5865a92c30 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Mon, 3 Sep 2012 02:59:41 +0200 Subject: [PATCH] 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. --- src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5