From: terencehill Date: Wed, 15 Aug 2018 09:16:20 +0000 (+0200) Subject: Improve 2 comments X-Git-Tag: xonotic-v0.8.5~1929 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ef638e58a31ac69c6f1daaa67c6c38e379f388c7;p=xonotic%2Fxonotic-data.pk3dir.git Improve 2 comments --- diff --git a/qcsrc/common/gamemodes/gamemode/ctf/ctf.qc b/qcsrc/common/gamemodes/gamemode/ctf/ctf.qc index 812d5da4e..0c43d81e4 100644 --- a/qcsrc/common/gamemodes/gamemode/ctf/ctf.qc +++ b/qcsrc/common/gamemodes/gamemode/ctf/ctf.qc @@ -1243,7 +1243,7 @@ void ctf_FlagSetup(int teamnumber, entity flag) // called when spawning a flag e flag.netname = strzone(sprintf("%s%s^7 flag", Team_ColorCode(teamnumber), Team_ColorName_Upper(teamnumber))); flag.team = teamnumber; flag.classname = "item_flag_team"; - flag.target = "###item###"; // wut? + flag.target = "###item###"; // for finding the nearest item using findnearest flag.flags = FL_ITEM | FL_NOTARGET; IL_PUSH(g_items, flag); flag.solid = SOLID_TRIGGER; diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index 28ea1add9..71c522926 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -1317,7 +1317,7 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default || (def.instanceOfHealth && def != ITEM_HealthSmall) || (def.instanceOfArmor && def != ITEM_ArmorSmall) || (itemid & (IT_KEY1 | IT_KEY2)) - ) this.target = "###item###"; // for finding the nearest item using find() + ) this.target = "###item###"; // for finding the nearest item using findnearest Item_ItemsTime_SetTime(this, 0); }