X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftarget%2Flocation.qc;h=5259276e43c0f1bb7c47ae87ea9365577e89bbc8;hb=63cf60651482d650ae40d005bd4847d5111123a9;hp=14512c794cfc960d92555e9e327c4c25f6c71d40;hpb=32ca966802c45c4c231210c2d8776bc3f4135dc2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/target/location.qc b/qcsrc/common/triggers/target/location.qc index 14512c794..5259276e4 100644 --- a/qcsrc/common/triggers/target/location.qc +++ b/qcsrc/common/triggers/target/location.qc @@ -1,14 +1,21 @@ +#include "location.qh" #ifdef SVQC +void target_push_init(entity this); + spawnfunc(target_location) { - self.classname = "target_location"; + this.classname = "target_location"; // location name in netname // eventually support: count, teamgame selectors, line of sight? + + target_push_init(this); } spawnfunc(info_location) { - self.classname = "target_location"; - self.message = self.netname; + this.classname = "target_location"; + this.message = this.netname; + + target_push_init(this); } #endif