X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Futil.qc;h=7c46564f45f2d696196d9342c62c7260203549d7;hb=3219eb96feaff1ae0f3355988a48a07ab4ea878d;hp=76abad81fbe715fcf514c2082e80ae1bfb95380a;hpb=7f2fe3e3578d421d822172932b25a3156b01391c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/util.qc b/qcsrc/menu/xonotic/util.qc index 76abad81f..7c46564f4 100644 --- a/qcsrc/menu/xonotic/util.qc +++ b/qcsrc/menu/xonotic/util.qc @@ -305,17 +305,17 @@ void UpdateNotification_URI_Get_Callback(float id, float status, string data) } if(status != 0) { - printf(_("error receiving update notification: status is %d\n"), status); + dprintf("error receiving update notification: status is %d\n", status); return; } if(substring(data, 0, 1) == "<") { - print(_("error: received HTML instead of an update notification\n")); + dprint("error: received HTML instead of an update notification\n"); return; } if(strstrofs(data, "\r", 0) != -1) { - print(_("error: received carriage returns from update notification server\n")); + dprint("error: received carriage returns from update notification server\n"); return; } @@ -655,7 +655,7 @@ float updateCompression() GAMETYPE(MAPINFO_TYPE_LMS) \ GAMETYPE(MAPINFO_TYPE_NEXBALL) \ GAMETYPE(MAPINFO_TYPE_ONSLAUGHT) \ - GAMETYPE(MAPINFO_TYPE_RACE) \ + if (cvar("developer")) GAMETYPE(MAPINFO_TYPE_RACE) \ GAMETYPE(MAPINFO_TYPE_CTS) \ GAMETYPE(MAPINFO_TYPE_TEAM_DEATHMATCH) \ //GAMETYPE(MAPINFO_TYPE_INVASION) \ @@ -666,7 +666,7 @@ float GameType_GetID(float cnt) float i; i = 0; - #define GAMETYPE(id) if(i++ == cnt) return id; + #define GAMETYPE(id) { if(i++ == cnt) return id; } GAMETYPES #undef GAMETYPE