From: Mario Date: Sat, 24 Oct 2015 09:29:31 +0000 (+1000) Subject: Let's not use uppercase filenames X-Git-Tag: xonotic-v0.8.2~1804 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2c4c6051aa7609cd2d59db2c8d1e2dc80ef65b23;p=xonotic%2Fxonotic-data.pk3dir.git Let's not use uppercase filenames --- diff --git a/qcsrc/common/mutators/mutator/instagib/instagib.qc b/qcsrc/common/mutators/mutator/instagib/instagib.qc index 2acb1839b..9d5caef00 100644 --- a/qcsrc/common/mutators/mutator/instagib/instagib.qc +++ b/qcsrc/common/mutators/mutator/instagib/instagib.qc @@ -472,7 +472,7 @@ MUTATOR_HOOKFUNCTION(mutator_instagib, BuildMutatorsPrettyString) MUTATOR_HOOKFUNCTION(mutator_instagib, SetModname) { - modname = "instagib"; + modname = "InstaGib"; return true; } diff --git a/qcsrc/menu/xonotic/serverlist.qc b/qcsrc/menu/xonotic/serverlist.qc index c6ee15a6b..2cee6162f 100644 --- a/qcsrc/menu/xonotic/serverlist.qc +++ b/qcsrc/menu/xonotic/serverlist.qc @@ -1079,24 +1079,26 @@ void XonoticServerList_drawListBoxItem(entity me, int i, vector absSize, bool is #ifdef COMPAT_NO_MOD_IS_XONOTIC if(modname == "") - modname = "Xonotic"; + modname = "xonotic"; #endif + modname = strtolower(modname); + /* SLIST_FIELD_MOD = gethostcacheindexforkey("mod"); s = gethostcachestring(SLIST_FIELD_MOD, i); if(s != "data") - if(modname == "Xonotic") + if(modname == "xonotic") modname = s; */ // list the mods here on which the pure server check actually works - if(modname != "Xonotic") - if(modname != "InstaGib" || modname != "MinstaGib") - if(modname != "CTS") - if(modname != "NIX") - if(modname != "NewToys") - pure_available = false; + if(modname != "xonotic") + if(modname != "instagib" || modname != "minstagib") + if(modname != "cts") + if(modname != "nix") + if(modname != "newtoys") + pure = false; if(gethostcachenumber(SLIST_FIELD_FREESLOTS, i) <= 0) theAlpha = SKINALPHA_SERVERLIST_FULL; @@ -1204,7 +1206,7 @@ void XonoticServerList_drawListBoxItem(entity me, int i, vector absSize, bool is iconPos.x += iconSize.x; // Mod - if(modname == "Xonotic") + if(modname == "xonotic") { // Here, pure_available should always be set. If not, consider // it an impurity.