version 1.3 | | version 1.4 |
---|
| | |
/* | | /* |
* static char *rcsid_los_c = | | * static char *rcsid_los_c = |
* "$Id: los.c,v 1.3 2001/06/04 06:41:02 mwedel Exp $"; | | * "$Id: los.c,v 1.4 2001/06/13 06:16:53 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
for(x=darklevel-5; x<6-darklevel; x++) | | for(x=darklevel-5; x<6-darklevel; x++) |
for(y=darklevel-5; y<6-darklevel; y++) | | for(y=darklevel-5; y<6-darklevel; y++) |
if(!(op->contr->blocked_los[x+op->contr->socket.mapx/2][y+op->contr->socket.mapy/2]==100)) | | if(!(op->contr->blocked_los[x+op->contr->socket.mapx/2][y+op->contr->socket.mapy/2]==100)) |
op->contr->blocked_los[x+op->contr->socket.mapx/2][y+op->contr->socket.mapx/2]-= MAX(0,6 -darklevel - MAX(abs(x),abs(y))); | | op->contr->blocked_los[x+op->contr->socket.mapx/2][y+op->contr->socket.mapy/2]-= |
| | MAX(0,6 -darklevel - MAX(abs(x),abs(y))); |
} | | } |
| | |
/* blinded_sight() - sets all veiwable squares to blocked except | | /* blinded_sight() - sets all veiwable squares to blocked except |