From: Mario Date: Sun, 14 Dec 2014 11:29:19 +0000 (+1100) Subject: Fix cases of if not X-Git-Tag: xonotic-v0.8.0~86^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=250370d89966398e72f670bb6af1e9bdbb1e6cb5;p=xonotic%2Fxonotic-data.pk3dir.git Fix cases of if not --- diff --git a/qcsrc/menu/xonotic/demolist.c b/qcsrc/menu/xonotic/demolist.c index f04fde83d..f2e209ca4 100644 --- a/qcsrc/menu/xonotic/demolist.c +++ b/qcsrc/menu/xonotic/demolist.c @@ -192,7 +192,7 @@ void XonoticDemoList_timeDemo(entity me) void DemoConfirm_ListClick_Check_Gamestatus(entity me) { - if not(gamestatus & (GAME_CONNECTED | GAME_ISSERVER)) // we're not in a match, lets watch the demo + if(!(gamestatus & (GAME_CONNECTED | GAME_ISSERVER))) // we're not in a match, lets watch the demo { me.startDemo(me); } diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_media_demo.c b/qcsrc/menu/xonotic/dialog_multiplayer_media_demo.c index a35972e00..092355126 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_media_demo.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_media_demo.c @@ -16,7 +16,7 @@ const float DMO_TIME = 2; #ifdef IMPLEMENTATION void DemoConfirm_Check_Gamestatus(entity btn, entity me) { - if not(gamestatus & (GAME_CONNECTED | GAME_ISSERVER)) // we're not in a match, lets watch the demo + if(!(gamestatus & (GAME_CONNECTED | GAME_ISSERVER))) // we're not in a match, lets watch the demo { if(btn.democlicktype == DMO_PLAY) { demolist.startDemo(demolist); }