From: Rudolf Polzer Date: Mon, 14 Jan 2013 10:29:31 +0000 (+0100) Subject: Fix some !s related bugs (thanks, mixxx) X-Git-Tag: xonotic-v0.7.0~127 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=84376a31e0d4478dc04dd179c7e61355ddaa1dc8;p=xonotic%2Fxonotic-data.pk3dir.git Fix some !s related bugs (thanks, mixxx) --- diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index ee46d5eab..f7ced4205 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -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)); diff --git a/qcsrc/server/bot/bot.qc b/qcsrc/server/bot/bot.qc index 851a1d9fc..45107b833 100644 --- a/qcsrc/server/bot/bot.qc +++ b/qcsrc/server/bot/bot.qc @@ -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)