]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Let's not use uppercase filenames
authorMario <mario@smbclan.net>
Sat, 24 Oct 2015 09:29:31 +0000 (19:29 +1000)
committerMario <mario@smbclan.net>
Sat, 24 Oct 2015 09:39:21 +0000 (19:39 +1000)
qcsrc/common/mutators/mutator/instagib/instagib.qc
qcsrc/menu/xonotic/serverlist.qc

index 2acb1839b2ddd65ede7c5dce5f35d7ed440e70b7..9d5caef000380495b5b24ce91db02d07ed316db9 100644 (file)
@@ -472,7 +472,7 @@ MUTATOR_HOOKFUNCTION(mutator_instagib, BuildMutatorsPrettyString)
 
 MUTATOR_HOOKFUNCTION(mutator_instagib, SetModname)
 {
-       modname = "instagib";
+       modname = "InstaGib";
        return true;
 }
 
index c6ee15a6b3ace79108014ad267170da13b47faf9..2cee6162ff7a9d1d81e45677cd7bf1a1015dcc5d 100644 (file)
@@ -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.