1 | /* |
1 | /* |
2 | * static char *rcsid_los_c = |
2 | * static char *rcsid_los_c = |
3 | * "$Id: los.C,v 1.2 2006/08/29 08:01:35 root Exp $"; |
3 | * "$Id: los.C,v 1.3 2006/09/03 00:18:40 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
322 | /* Do a sanity check. If not valid, some code below may do odd |
322 | /* Do a sanity check. If not valid, some code below may do odd |
323 | * things. |
323 | * things. |
324 | */ |
324 | */ |
325 | if (darklevel > MAX_DARKNESS) { |
325 | if (darklevel > MAX_DARKNESS) { |
326 | LOG(llevError,"Map darkness for %s on %s is too high (%d)\n", |
326 | LOG(llevError,"Map darkness for %s on %s is too high (%d)\n", |
327 | op->name, op->map->path, darklevel); |
327 | &op->name, op->map->path, darklevel); |
328 | darklevel = MAX_DARKNESS; |
328 | darklevel = MAX_DARKNESS; |
329 | } |
329 | } |
330 | |
330 | |
331 | /* First, limit player furthest (unlighted) vision */ |
331 | /* First, limit player furthest (unlighted) vision */ |
332 | for (x = 0; x < op->contr->socket.mapx; x++) |
332 | for (x = 0; x < op->contr->socket.mapx; x++) |