--- deliantra/server/common/los.c 2006/02/03 07:11:36 1.1 +++ deliantra/server/common/los.c 2006/02/22 18:01:21 1.1.1.2 @@ -49,6 +49,8 @@ blocks block[MAP_CLIENT_X][MAP_CLIENT_Y]; +static void expand_lighted_sight(object *op); + /* * Used to initialise the array used by the LOS routines. * What this sets if that x,y blocks the view of bx,by @@ -59,7 +61,7 @@ * be blocked. */ -void set_block(int x,int y,int bx, int by) { +static void set_block(int x, int y, int bx, int by) { int index=block[x][y].index,i; /* Due to flipping, we may get duplicates - better safe than sorry. @@ -251,7 +253,7 @@ * This is somewhat suboptimal, would be better to improve the formula. */ -void expand_sight(object *op) +static void expand_sight(object *op) { int i,x,y, dx, dy; @@ -292,14 +294,14 @@ * 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! */ if(op->glow_radius>0) return 1; return 0; } -void expand_lighted_sight(object *op) +static void expand_lighted_sight(object *op) { int x,y,darklevel,ax,ay, basex, basey, mflags, light, x1, y1; mapstruct *m=op->map; @@ -411,7 +413,7 @@ * really need for any reasonable game play. */ -void blinded_sight (object *op) { +static void blinded_sight(object *op) { int x,y; for (x = 0; x < op->contr->socket.mapx; x++) @@ -494,7 +496,7 @@ * 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; for(pl=first_player;pl!=NULL;pl=pl->next) { @@ -586,7 +588,7 @@ * 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; for (pl = first_player; pl; pl = pl->next) @@ -605,7 +607,7 @@ * players within its range */ -void make_sure_not_seen(object *op) { +void make_sure_not_seen(const object *op) { player *pl; for (pl = first_player; pl; pl = pl->next) if (pl->ob->map == op->map &&