]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix some !s related bugs (thanks, mixxx)
authorRudolf Polzer <divverent@xonotic.org>
Mon, 14 Jan 2013 10:29:31 +0000 (11:29 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 14 Jan 2013 10:29:31 +0000 (11:29 +0100)
qcsrc/common/mapinfo.qc
qcsrc/server/bot/bot.qc

index ee46d5eab2ab85bdcabb18e0641086cded0135cb..f7ced420579acb32837ea61f04511d39ddac86f5 100644 (file)
@@ -38,7 +38,7 @@ void MapInfo_Cache_Store()
                return;
 
        s = db_get(_MapInfo_Cache_DB_NameToIndex, MapInfo_Map_bspname);
-       if(s != "")
+       if(s == "")
        {
                i = buf_getsize(_MapInfo_Cache_Buf_IndexToMapData);
                db_put(_MapInfo_Cache_DB_NameToIndex, MapInfo_Map_bspname, ftos(i));
index 851a1d9fcf0a1c31aa786cf6c12d97d3daf34894..45107b833a1b16221b8082da7c55c143d7b9244b 100644 (file)
@@ -142,6 +142,8 @@ void bot_setnameandstuff()
                        if(substring(readfile, 0, 1) == "#")
                                continue;
                        tokens = tokenizebyseparator(readfile, "\t");
+                       if(tokens == 0)
+                               continue;
                        s = argv(0);
                        prio = 1;
                        FOR_EACH_CLIENT(p)