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

Comparing deliantra/server/server/player.C (file contents):
Revision 1.214 by root, Sat Dec 27 02:31:19 2008 UTC vs.
Revision 1.215 by root, Sat Dec 27 08:01:07 2008 UTC

3461 if (pl->ranged_ob == ob) 3461 if (pl->ranged_ob == ob)
3462 pl->ranged_ob = 0; 3462 pl->ranged_ob = 0;
3463} 3463}
3464 3464
3465sint8 3465sint8
3466player::visibility_at (maptile *map, int x, int y) const 3466player::darkness_at (maptile *map, int x, int y) const
3467{ 3467{
3468 if (!ns) 3468 if (ns)
3469 return 0; 3469 return LOS_BLOCKED;
3470 3470
3471 int dx, dy; 3471 int dx, dy;
3472 if (!adjacent_map (map, ns->current_map, &dx, &dy)) 3472 if (!adjacent_map (map, ns->current_map, &dx, &dy))
3473 return 0; 3473 return LOS_BLOCKED;
3474 3474
3475 x += dx - ns->current_x; 3475 x += dx - ns->current_x;
3476 y += dy - ns->current_y; 3476 y += dy - ns->current_y;
3477 3477
3478 return 100 - blocked_los (x, y); 3478 return blocked_los (x, y);
3479} 3479}
3480 3480
3481void 3481void
3482player::infobox (const char *title, const char *msg, int color) 3482player::infobox (const char *title, const char *msg, int color)
3483{ 3483{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines