version 1.16 | | version 1.17 |
---|
| | |
/* | | /* |
* static char *rcsid_los_c = | | * static char *rcsid_los_c = |
* "$Id: los.c,v 1.16 2005/12/05 23:34:03 akirschbaum Exp $"; | | * "$Id: los.c,v 1.17 2006/02/09 00:48:36 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* check the op->glow_radius instead of calling this. | | * check the op->glow_radius instead of calling this. |
*/ | | */ |
| | |
int has_carried_lights(object *op) { | | int has_carried_lights(const object *op) { |
/* op may glow! */ | | /* op may glow! */ |
if(op->glow_radius>0) return 1; | | if(op->glow_radius>0) return 1; |
| | |
| | |
* map is the map that changed, x and y are the coordinates. | | * map is the map that changed, x and y are the coordinates. |
*/ | | */ |
| | |
void update_all_los(mapstruct *map, int x, int y) { | | void update_all_los(const mapstruct *map, int x, int y) { |
player *pl; | | player *pl; |
| | |
for(pl=first_player;pl!=NULL;pl=pl->next) { | | for(pl=first_player;pl!=NULL;pl=pl->next) { |
| | |
* check if any players are nearby, and edit their LOS array. | | * check if any players are nearby, and edit their LOS array. |
*/ | | */ |
| | |
void make_sure_seen(object *op) { | | void make_sure_seen(const object *op) { |
player *pl; | | player *pl; |
| | |
for (pl = first_player; pl; pl = pl->next) | | for (pl = first_player; pl; pl = pl->next) |
| | |
* players within its range | | * players within its range |
*/ | | */ |
| | |
void make_sure_not_seen(object *op) { | | void make_sure_not_seen(const object *op) { |
player *pl; | | player *pl; |
for (pl = first_player; pl; pl = pl->next) | | for (pl = first_player; pl; pl = pl->next) |
if (pl->ob->map == op->map && | | if (pl->ob->map == op->map && |