From b80f804933b243e66d35d5ae2820dc914979de24 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Wed, 1 May 2013 14:51:26 -0400 Subject: [PATCH] Save changes temporarily so I can fix something in master --- qcsrc/server/spawnpoints.qc | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/qcsrc/server/spawnpoints.qc b/qcsrc/server/spawnpoints.qc index c0846b742..c45f357f6 100644 --- a/qcsrc/server/spawnpoints.qc +++ b/qcsrc/server/spawnpoints.qc @@ -1,10 +1,20 @@ float Spawn_Send(entity to, float sf) { WriteByte(MSG_ENTITY, ENT_CLIENT_SPAWNPOINT); - WriteByte(MSG_ENTITY, self.team); - WriteShort(MSG_ENTITY, self.origin_x); - WriteShort(MSG_ENTITY, self.origin_y); - WriteShort(MSG_ENTITY, self.origin_z); + WriteByte(MSG_ENTITY, sf); + + if(sf & 1) + { + WriteByte(MSG_ENTITY, self.team); + WriteShort(MSG_ENTITY, self.origin_x); + WriteShort(MSG_ENTITY, self.origin_y); + WriteShort(MSG_ENTITY, self.origin_z); + } + if(sf & 2) + { + WriteLong(MSG_ENTITY, self.last_spawn_time); + } + return TRUE; } @@ -16,6 +26,9 @@ void spawnpoint_use() self.team = activator.team; some_spawn_has_been_used = 1; } + print("spawnpoint was used!\n"); + self.last_spawn_time = time; + Spawn_Send_Think; } void relocate_spawnpoint() -- 2.39.2