ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/monster.C
(Generate patch)

Comparing deliantra/server/server/monster.C (file contents):
Revision 1.45 by root, Sun Nov 16 03:52:13 2008 UTC vs.
Revision 1.46 by root, Thu Dec 4 01:07:35 2008 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines