Fix warning C4805: '!=': unsafe mix of type 'bool' and type 'int' in operation

This commit is contained in:
Magnus Norddahl 2016-10-17 11:54:03 +02:00
parent 931d241056
commit c9a9e93c66

View file

@ -75,7 +75,7 @@ bool changerenderer;
// Software OpenGL canvas
CUSTOM_CVAR(Bool, vid_used3d, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
{
if (self != currentcanvas)
if ((self ? 1 : 0) != currentcanvas)
Printf("You must restart " GAMENAME " for this change to take effect.\n");
}