… | |
… | |
1827 | if (op->map) |
1827 | if (op->map) |
1828 | { |
1828 | { |
1829 | /* Check the spaces with the max light radius to see if any of them |
1829 | /* Check the spaces with the max light radius to see if any of them |
1830 | * have lights, and if any of them light the player enough, then return 1. |
1830 | * have lights, and if any of them light the player enough, then return 1. |
1831 | */ |
1831 | */ |
1832 | for (int x = op->x - MAX_LIGHT_RADII; x <= op->x + MAX_LIGHT_RADII; x++) |
1832 | for (int x = op->x - MAX_LIGHT_RADIUS; x <= op->x + MAX_LIGHT_RADIUS; x++) |
1833 | { |
1833 | { |
1834 | for (int y = op->y - MAX_LIGHT_RADII; y <= op->y + MAX_LIGHT_RADII; y++) |
1834 | for (int y = op->y - MAX_LIGHT_RADIUS; y <= op->y + MAX_LIGHT_RADIUS; y++) |
1835 | { |
1835 | { |
1836 | maptile *m = op->map; |
1836 | maptile *m = op->map; |
1837 | sint16 nx = x; |
1837 | sint16 nx = x; |
1838 | sint16 ny = y; |
1838 | sint16 ny = y; |
1839 | |
1839 | |