From: havoc Date: Tue, 25 Dec 2007 06:09:39 +0000 (+0000) Subject: World_EntitiesInBox now takes const mins/maxs X-Git-Tag: xonotic-v0.1.0preview~2633 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=da678034f2cd88eff4b8f5c98ca628cd23893fe3;p=xonotic%2Fdarkplaces.git World_EntitiesInBox now takes const mins/maxs git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7858 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/world.c b/world.c index 017aad98..b178bad2 100644 --- a/world.c +++ b/world.c @@ -127,7 +127,7 @@ void World_UnlinkEdict(prvm_edict_t *ent) } } -int World_EntitiesInBox(world_t *world, vec3_t mins, vec3_t maxs, int maxlist, prvm_edict_t **list) +int World_EntitiesInBox(world_t *world, const vec3_t mins, const vec3_t maxs, int maxlist, prvm_edict_t **list) { int numlist; link_t *grid; diff --git a/world.h b/world.h index f591cbac..cbe9747f 100644 --- a/world.h +++ b/world.h @@ -78,7 +78,7 @@ void World_UnlinkEdict(struct prvm_edict_s *ent); void World_LinkEdict(world_t *world, struct prvm_edict_s *ent, const vec3_t mins, const vec3_t maxs); // returns list of entities touching a box -int World_EntitiesInBox(world_t *world, vec3_t mins, vec3_t maxs, int maxlist, struct prvm_edict_s **list); +int World_EntitiesInBox(world_t *world, const vec3_t mins, const vec3_t maxs, int maxlist, struct prvm_edict_s **list); #endif