X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftarget%2Flocation.qc;h=642c72cdbb13645fddb3da24e05e6aeffb47a139;hb=37cf62041a76248472ef6a78feaaed33e35a2260;hp=1430cabd81ee3364a9998ff3721aca30a7a47627;hpb=fc2be4c1e7547ae97301f7966333e4dc858baf92;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/target/location.qc b/qcsrc/common/triggers/target/location.qc index 1430cabd8..642c72cdb 100644 --- a/qcsrc/common/triggers/target/location.qc +++ b/qcsrc/common/triggers/target/location.qc @@ -1,14 +1,20 @@ #ifdef SVQC -void spawnfunc_target_location() +void target_push_init(entity this); + +spawnfunc(target_location) { self.classname = "target_location"; // location name in netname // eventually support: count, teamgame selectors, line of sight? + + target_push_init(this); } -void spawnfunc_info_location() +spawnfunc(info_location) { - self.classname = "target_location"; - self.message = self.netname; + this.classname = "target_location"; + this.message = this.netname; + + target_push_init(this); } #endif