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
This commit is contained in:
alexey.lysiuk 2015-10-11 09:28:38 +03:00
parent ba651ebff7
commit fe61b8064a

View file

@ -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