diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-10-28 11:30:25 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-10-28 11:30:25 +0000 |
| commit | a3ce2eb90cd26fe87042344175e5c9669adb7dcd (patch) | |
| tree | d936a8ffafe366caea08c5bb384794034c590322 /src/game/server/srv_ctf.cpp | |
| parent | eba83b7e194cc6b4ba76fd5e048d81279becfc35 (diff) | |
| download | zcatch-a3ce2eb90cd26fe87042344175e5c9669adb7dcd.tar.gz zcatch-a3ce2eb90cd26fe87042344175e5c9669adb7dcd.zip | |
major update. splitted the player information into two diffrent network items
Diffstat (limited to 'src/game/server/srv_ctf.cpp')
| -rw-r--r-- | src/game/server/srv_ctf.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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 /////////////////////// |