From ef638e58a31ac69c6f1daaa67c6c38e379f388c7 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 15 Aug 2018 11:16:20 +0200 Subject: [PATCH] Improve 2 comments --- qcsrc/common/gamemodes/gamemode/ctf/ctf.qc | 2 +- qcsrc/common/t_items.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.2