… | |
… | |
349 | /* Do a sanity check. If not valid, some code below may do odd |
349 | /* Do a sanity check. If not valid, some code below may do odd |
350 | * things. |
350 | * things. |
351 | */ |
351 | */ |
352 | if (darklevel > MAX_DARKNESS) |
352 | if (darklevel > MAX_DARKNESS) |
353 | { |
353 | { |
354 | LOG (llevError, "Map darkness for %s on %s is too high (%d)\n", &op->name, op->map->path, darklevel); |
354 | LOG (llevError, "Map darkness for %s on %s is too high (%d)\n", &op->name, &op->map->path, darklevel); |
355 | darklevel = MAX_DARKNESS; |
355 | darklevel = MAX_DARKNESS; |
356 | } |
356 | } |
357 | |
357 | |
358 | /* First, limit player furthest (unlighted) vision */ |
358 | /* First, limit player furthest (unlighted) vision */ |
359 | for (x = 0; x < op->contr->ns->mapx; x++) |
359 | for (x = 0; x < op->contr->ns->mapx; x++) |