X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fplat.qc;h=7e2ae74aabfd5080e936a2f20fc615c8989d624d;hb=c0da80fe6125a43ee99a90808ac6f9d0ddcf88c8;hp=9e98d12ba25416508e57e06d22c865080fc35594;hpb=201f6309c92217b63dc34daf004fbb7424096eca;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/func/plat.qc b/qcsrc/common/triggers/func/plat.qc index 9e98d12ba..7e2ae74aa 100644 --- a/qcsrc/common/triggers/func/plat.qc +++ b/qcsrc/common/triggers/func/plat.qc @@ -3,7 +3,7 @@ REGISTER_NET_LINKED(ENT_CLIENT_PLAT) #ifdef SVQC void plat_link(); -void plat_delayedinit() +void plat_delayedinit(entity this) { plat_link(); plat_spawn_inside_trigger(); // the "start moving" trigger @@ -23,7 +23,7 @@ float plat_send(entity to, float sf) WriteString(MSG_ENTITY, self.model); - trigger_common_write(true); + trigger_common_write(self, true); WriteCoord(MSG_ENTITY, self.pos1_x); WriteCoord(MSG_ENTITY, self.pos1_y); @@ -101,7 +101,7 @@ spawnfunc(func_plat) this.angles = '0 0 0'; this.classname = "plat"; - if (!InitMovingBrushTrigger()) + if (!InitMovingBrushTrigger(this)) return; this.effects |= EF_LOWPRECISION; setsize (this, this.mins , this.maxs); @@ -142,7 +142,7 @@ NET_HANDLE(ENT_CLIENT_PLAT, bool isnew) this.model = strzone(ReadString()); _setmodel(this, this.model); - trigger_common_read(true); + trigger_common_read(this, true); this.pos1_x = ReadCoord(); this.pos1_y = ReadCoord();