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.5 by root, Thu Sep 14 22:33:59 2006 UTC vs.
Revision 1.6 by root, Sat Sep 16 22:24:12 2006 UTC

327 327
328static void 328static void
329expand_lighted_sight (object *op) 329expand_lighted_sight (object *op)
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 mapstruct *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 = MAP_DARKNESS (m);
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 */
517 * players, which is should not be. 517 * players, which is should not be.
518 * Currently, this function is called from the 518 * Currently, this function is called from the
519 * change_map_light function 519 * change_map_light function
520 */ 520 */
521void 521void
522update_all_map_los (mapstruct *map) 522update_all_map_los (maptile *map)
523{ 523{
524 player *pl; 524 player *pl;
525 525
526 for (pl = first_player; pl != NULL; pl = pl->next) 526 for (pl = first_player; pl != NULL; pl = pl->next)
527 { 527 {
543 * 543 *
544 * map is the map that changed, x and y are the coordinates. 544 * map is the map that changed, x and y are the coordinates.
545 */ 545 */
546 546
547void 547void
548update_all_los (const mapstruct *map, int x, int y) 548update_all_los (const maptile *map, int x, int y)
549{ 549{
550 player *pl; 550 player *pl;
551 551
552 for (pl = first_player; pl != NULL; pl = pl->next) 552 for (pl = first_player; pl != NULL; pl = pl->next)
553 { 553 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines