]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/dialog_welcome.qc
Wrap all status and bitflag checks with parentesis to avoid possible obscure bugs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_welcome.qc
index 1651af5e6d4ca725e0ff29635227bbe78881d449..addafe6c08c0493ba6b2a483ba1dee0004516632 100644 (file)
@@ -93,7 +93,7 @@ void XonoticWelcomeDialog_draw(entity me)
        if (!(gamestatus & (GAME_ISSERVER | GAME_CONNECTED)))
                me.close(me);
 
-       if(me.serverinfo_MOTD == "" && gamestatus & (GAME_CONNECTED | GAME_ISSERVER))
+       if(me.serverinfo_MOTD == "" && (gamestatus & (GAME_CONNECTED | GAME_ISSERVER)))
        {
                // if serverinfo_MOTD is empty while connected it means we are connected to an old server
                // in this case show the csqc welcome message and instantly close the dialog