… | |
… | |
421 | min_it (op->contr->blocked_los[ax][ay], darkness_table [idistance (ax - basex, ay - basey)]); |
421 | min_it (op->contr->blocked_los[ax][ay], darkness_table [idistance (ax - basex, ay - basey)]); |
422 | } |
422 | } |
423 | } |
423 | } |
424 | |
424 | |
425 | // psosibly do 2nd pass for rare negative glow radii |
425 | // psosibly do 2nd pass for rare negative glow radii |
426 | if (pass2) |
426 | if (expect_false (pass2)) |
427 | for (x = min_x, basex = -MAX_LIGHT_RADIUS; x <= max_x; x++, basex++) |
427 | for (x = min_x, basex = -MAX_LIGHT_RADIUS; x <= max_x; x++, basex++) |
428 | for (y = min_y, basey = -MAX_LIGHT_RADIUS; y <= max_y; y++, basey++) |
428 | for (y = min_y, basey = -MAX_LIGHT_RADIUS; y <= max_y; y++, basey++) |
429 | { |
429 | { |
430 | maptile *m = op->map; |
430 | maptile *m = op->map; |
431 | sint16 nx = x; |
431 | sint16 nx = x; |