… | |
… | |
405 | if (op->contr->blocked_los[ax][ay] != LOS_BLOCKED) |
405 | if (op->contr->blocked_los[ax][ay] != LOS_BLOCKED) |
406 | min_it (op->contr->blocked_los[ax][ay], darkness_table [idistance (ax - basex, ay - basey)]); |
406 | min_it (op->contr->blocked_los[ax][ay], darkness_table [idistance (ax - basex, ay - basey)]); |
407 | } |
407 | } |
408 | } |
408 | } |
409 | |
409 | |
410 | // psosibly do 2nd pass for rare negative glow radii |
410 | // possibly do 2nd pass for rare negative glow radii |
411 | if (expect_false (pass2)) |
411 | if (expect_false (pass2)) |
412 | for (x = min_x, basex = -MAX_LIGHT_RADIUS; x <= max_x; x++, basex++) |
412 | for (x = min_x, basex = -MAX_LIGHT_RADIUS; x <= max_x; x++, basex++) |
413 | for (y = min_y, basey = -MAX_LIGHT_RADIUS; y <= max_y; y++, basey++) |
413 | for (y = min_y, basey = -MAX_LIGHT_RADIUS; y <= max_y; y++, basey++) |
414 | { |
414 | { |
415 | maptile *m = op->map; |
415 | maptile *m = op->map; |