From 4739966e14ca2df24d4f44fb814b6275b9bf2a3c Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 24 Feb 2008 16:03:58 +0000 Subject: larger restructure to improve security --- src/game/server/gs_game_ctf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/server/gs_game_ctf.cpp') diff --git a/src/game/server/gs_game_ctf.cpp b/src/game/server/gs_game_ctf.cpp index 37e2baba..a703e6b6 100644 --- a/src/game/server/gs_game_ctf.cpp +++ b/src/game/server/gs_game_ctf.cpp @@ -99,7 +99,7 @@ void gameobject_ctf::tick() else { player *close_players[MAX_CLIENTS]; - int types[] = {OBJTYPE_PLAYER_CHARACTER}; + int types[] = {NETOBJTYPE_PLAYER_CHARACTER}; int num = world->find_entities(f->pos, 32.0f, (entity**)close_players, MAX_CLIENTS, types, 1); for(int i = 0; i < num; i++) { @@ -161,7 +161,7 @@ void gameobject_ctf::tick() // Flag flag::flag(int _team) -: entity(OBJTYPE_FLAG) +: entity(NETOBJTYPE_FLAG) { team = _team; proximity_radius = phys_size; @@ -183,7 +183,7 @@ void flag::reset() void flag::snap(int snapping_client) { - obj_flag *flag = (obj_flag *)snap_new_item(OBJTYPE_FLAG, team, sizeof(obj_flag)); + NETOBJ_FLAG *flag = (NETOBJ_FLAG *)snap_new_item(NETOBJTYPE_FLAG, team, sizeof(NETOBJ_FLAG)); flag->x = (int)pos.x; flag->y = (int)pos.y; flag->team = team; -- cgit 1.4.1