about summary refs log tree commit diff
path: root/src/game/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server')
-rw-r--r--src/game/server/srv_ctf.cpp7
1 files changed, 3 insertions, 4 deletions
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;
 }