version 1.17 | | version 1.18 |
---|
| | |
/* | | /* |
* static char *rcsid_los_c = | | * static char *rcsid_los_c = |
* "$Id: los.c,v 1.17 2006/02/09 00:48:36 akirschbaum Exp $"; | | * "$Id: los.c,v 1.18 2006/02/17 21:29:47 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
blocks block[MAP_CLIENT_X][MAP_CLIENT_Y]; | | 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. | | * Used to initialise the array used by the LOS routines. |
* What this sets if that x,y blocks the view of bx,by | | * What this sets if that x,y blocks the view of bx,by |
| | |
* be blocked. | | * 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; | | int index=block[x][y].index,i; |
| | |
/* Due to flipping, we may get duplicates - better safe than sorry. | | /* Due to flipping, we may get duplicates - better safe than sorry. |
| | |
* This is somewhat suboptimal, would be better to improve the formula. | | * 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; | | int i,x,y, dx, dy; |
| | |
| | |
return 0; | | 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; | | int x,y,darklevel,ax,ay, basex, basey, mflags, light, x1, y1; |
mapstruct *m=op->map; | | mapstruct *m=op->map; |
| | |
* really need for any reasonable game play. | | * really need for any reasonable game play. |
*/ | | */ |
| | |
void blinded_sight (object *op) { | | static void blinded_sight(object *op) { |
int x,y; | | int x,y; |
| | |
for (x = 0; x < op->contr->socket.mapx; x++) | | for (x = 0; x < op->contr->socket.mapx; x++) |