From d66a2a46efd9369d918a60d5483c23ed39e8dd58 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 18 Nov 2007 22:20:35 +0000 Subject: fixed menu switching problems and some compile errors --- src/game/server/srv_ctf.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/game/server/srv_ctf.cpp') diff --git a/src/game/server/srv_ctf.cpp b/src/game/server/srv_ctf.cpp index c4cbd574..42061a5c 100644 --- a/src/game/server/srv_ctf.cpp +++ b/src/game/server/srv_ctf.cpp @@ -129,9 +129,8 @@ void flag::snap(int snapping_client) flag->x = (int)pos.x; flag->y = (int)pos.y; flag->team = team; + flag->carried_by = -1; - if(carrying_player && carrying_player->client_id == snapping_client) - flag->local_carry = 1; - else - flag->local_carry = 0; + if(carrying_player) + flag->carried_by = carrying_player->client_id; } -- cgit 1.4.1