]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Improve 2 comments
authorterencehill <piuntn@gmail.com>
Wed, 15 Aug 2018 09:16:20 +0000 (11:16 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 15 Aug 2018 09:16:20 +0000 (11:16 +0200)
qcsrc/common/gamemodes/gamemode/ctf/ctf.qc
qcsrc/common/t_items.qc

index 812d5da4ec0321625d09484e9f38daee27533a57..0c43d81e4070d556e35164bf9f0fb97d95a624c7 100644 (file)
@@ -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;
index 28ea1add9f998c8b52f9f463d6e7ca8bc73f50d2..71c5229267e0e5843ffa66b318ac62c3d1a0a9bd 100644 (file)
@@ -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);
        }