From fe61b8064adf5f42575d4c57056466d49878b9d1 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 11 Oct 2015 09:28:38 +0300 Subject: [PATCH] Fixed MSVC warning in a_randomspawner.cpp ...\src\g_shared\a_randomspawner.cpp(32): warning C4800: 'DWORD' : forcing value to bool 'true' or 'false' (performance warning) See http://forum.zdoom.org/viewtopic.php?t=49737 --- src/g_shared/a_randomspawner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_shared/a_randomspawner.cpp b/src/g_shared/a_randomspawner.cpp index 160766fa7..7d000f3d4 100644 --- a/src/g_shared/a_randomspawner.cpp +++ b/src/g_shared/a_randomspawner.cpp @@ -29,7 +29,7 @@ static bool IsMonster(const FDropItem *di) return false; } - return GetDefaultByType(pclass)->flags3 & MF3_ISMONSTER; + return 0 != (GetDefaultByType(pclass)->flags3 & MF3_ISMONSTER); } class ARandomSpawner : public AActor