X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Flib%2Fwarpzone%2Fserver.qc;h=27640770a1b5ea1ff88a9fbb58b43dd0fd669d86;hp=ec109dad9ede37e953ec75de5e111729bbd439a3;hb=e9f30b97435c6afe3d6911f21e1f4fd1b97e93da;hpb=2b728b9c59ef61318b7ca5a261cb7fa45d2143aa diff --git a/qcsrc/lib/warpzone/server.qc b/qcsrc/lib/warpzone/server.qc index ec109dad9..27640770a 100644 --- a/qcsrc/lib/warpzone/server.qc +++ b/qcsrc/lib/warpzone/server.qc @@ -53,7 +53,7 @@ void WarpZone_TeleportPlayer(entity teleporter, entity player, vector to, vector bool WarpZone_Teleported_Send(entity to, int sf) {SELFPARAM(); - WriteByte(MSG_ENTITY, ENT_CLIENT_WARPZONE_TELEPORTED); + WriteHeader(MSG_ENTITY, ENT_CLIENT_WARPZONE_TELEPORTED); WriteCoord(MSG_ENTITY, self.angles.x); WriteCoord(MSG_ENTITY, self.angles.y); WriteCoord(MSG_ENTITY, self.angles.z); @@ -154,7 +154,7 @@ float WarpZone_Teleport(entity wz, entity player, float f0, float f1) return 1; } -void WarpZone_Touch (void) +void WarpZone_Touch () {SELFPARAM(); if(other.classname == "trigger_warpzone") return; @@ -216,7 +216,7 @@ void WarpZone_Touch (void) bool WarpZone_Send(entity to, int sendflags) {SELFPARAM(); - WriteByte(MSG_ENTITY, ENT_CLIENT_WARPZONE); + WriteHeader(MSG_ENTITY, ENT_CLIENT_WARPZONE); // we must send this flag for clientside to match properly too int f = 0; @@ -271,7 +271,7 @@ bool WarpZone_Send(entity to, int sendflags) bool WarpZone_Camera_Send(entity to, int sendflags) {SELFPARAM(); int f = 0; - WriteByte(MSG_ENTITY, ENT_CLIENT_WARPZONE_CAMERA); + WriteHeader(MSG_ENTITY, ENT_CLIENT_WARPZONE_CAMERA); if(self.warpzone_fadestart) BITSET_ASSIGN(f, 2); @@ -485,7 +485,7 @@ void WarpZonePosition_InitStep_FindTarget() self.enemy.aiment = self; } -void WarpZoneCamera_Think(void) +void WarpZoneCamera_Think() {SELFPARAM(); if(self.warpzone_save_origin != self.origin || self.warpzone_save_angles != self.angles @@ -884,7 +884,7 @@ spawnfunc(target_warpzone_reconnect) spawnfunc_trigger_warpzone_reconnect(this); // both names make sense here :( } -void WarpZone_PlayerPhysics_FixVAngle(void) +void WarpZone_PlayerPhysics_FixVAngle() {SELFPARAM(); #ifndef WARPZONE_DONT_FIX_VANGLE if(IS_REAL_CLIENT(self))