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

Comparing deliantra/server/common/los.C (file contents):
Revision 1.13 by root, Mon Dec 25 14:43:22 2006 UTC vs.
Revision 1.14 by root, Mon Dec 25 14:54:44 2006 UTC

293 op->contr->blocked_los[dx][dy] = -1; 293 op->contr->blocked_los[dx][dy] = -1;
294 } 294 }
295 } 295 }
296 } 296 }
297 297
298 if (MAP_DARKNESS (op->map) > 0) /* player is on a dark map */ 298 if (op->map->darkness > 0) /* player is on a dark map */
299 expand_lighted_sight (op); 299 expand_lighted_sight (op);
300 300
301 301
302 /* clear mark squares */ 302 /* clear mark squares */
303 for (x = 0; x < op->contr->ns->mapx; x++) 303 for (x = 0; x < op->contr->ns->mapx; x++)
330{ 330{
331 int x, y, darklevel, ax, ay, basex, basey, mflags, light, x1, y1; 331 int x, y, darklevel, ax, ay, basex, basey, mflags, light, x1, y1;
332 maptile *m = op->map; 332 maptile *m = op->map;
333 sint16 nx, ny; 333 sint16 nx, ny;
334 334
335 darklevel = MAP_DARKNESS (m); 335 darklevel = m->darkness;
336 336
337 /* If the player can see in the dark, lower the darklevel for him */ 337 /* If the player can see in the dark, lower the darklevel for him */
338 if (QUERY_FLAG (op, FLAG_SEE_IN_DARK)) 338 if (QUERY_FLAG (op, FLAG_SEE_IN_DARK))
339 darklevel -= 2; 339 darklevel -= 2;
340 340

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines