From a3ce2eb90cd26fe87042344175e5c9669adb7dcd Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 28 Oct 2007 11:30:25 +0000 Subject: major update. splitted the player information into two diffrent network items --- src/game/server/srv_ctf.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 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 1831db31..57d81aef 100644 --- a/src/game/server/srv_ctf.cpp +++ b/src/game/server/srv_ctf.cpp @@ -68,7 +68,7 @@ void gameobject_ctf::tick() else { player *players[MAX_CLIENTS]; - int types[] = {OBJTYPE_PLAYER}; + int types[] = {OBJTYPE_PLAYER_CHARACTER}; int num = world->find_entities(f->pos, 32.0f, (entity**)players, MAX_CLIENTS, types, 1); for(int i = 0; i < num; i++) { @@ -96,9 +96,7 @@ void gameobject_ctf::tick() } } -////////////////////////////////////////////////// -// FLAG -////////////////////////////////////////////////// +// Flag flag::flag(int _team) : entity(OBJTYPE_FLAG) { @@ -135,4 +133,3 @@ void flag::snap(int snapping_client) else flag->local_carry = 0; } -// FLAG END /////////////////////// -- cgit 1.4.1