… | |
… | |
1157 | } |
1157 | } |
1158 | |
1158 | |
1159 | last = tmp; |
1159 | last = tmp; |
1160 | } |
1160 | } |
1161 | |
1161 | |
1162 | if (flag [FLAG_BLOCKSVIEW] || glow_radius) |
1162 | if (glow_radius || flag [FLAG_BLOCKSVIEW]) |
1163 | update_all_los (map, x, y); |
1163 | update_all_los (map, x, y); |
1164 | } |
1164 | } |
1165 | } |
1165 | } |
1166 | |
1166 | |
1167 | /* |
1167 | /* |
… | |
… | |
1439 | * be far away from this change and not affected in any way - |
1439 | * be far away from this change and not affected in any way - |
1440 | * this should get redone to only look for players within range, |
1440 | * this should get redone to only look for players within range, |
1441 | * or just updating the P_UPTODATE for spaces within this area |
1441 | * or just updating the P_UPTODATE for spaces within this area |
1442 | * of effect may be sufficient. |
1442 | * of effect may be sufficient. |
1443 | */ |
1443 | */ |
1444 | if (op->map->darkness && (op->glow_radius != 0)) |
1444 | if (op->map->darkness && (op->glow_radius || op->flag [FLAG_BLOCKSVIEW])) |
1445 | update_all_los (op->map, op->x, op->y); |
1445 | update_all_los (op->map, op->x, op->y); |
1446 | |
1446 | |
1447 | /* updates flags (blocked, alive, no magic, etc) for this map space */ |
1447 | /* updates flags (blocked, alive, no magic, etc) for this map space */ |
1448 | update_object (op, UP_OBJ_INSERT); |
1448 | update_object (op, UP_OBJ_INSERT); |
1449 | |
1449 | |