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

Comparing deliantra/server/common/map.C (file contents):
Revision 1.130 by root, Sun Sep 30 20:22:14 2007 UTC vs.
Revision 1.131 by root, Thu Oct 4 11:48:06 2007 UTC

1620{ 1620{
1621 if (!sound) 1621 if (!sound)
1622 return; 1622 return;
1623 1623
1624 for_all_players (pl) 1624 for_all_players (pl)
1625 if (pl->observe->map == this) 1625 if (pl->ob->map == this)
1626 if (client *ns = pl->ns) 1626 if (client *ns = pl->ns)
1627 { 1627 {
1628 int dx = x - pl->observe->x; 1628 int dx = x - pl->ob->x;
1629 int dy = y - pl->observe->y; 1629 int dy = y - pl->ob->y;
1630 1630
1631 int distance = idistance (dx, dy); 1631 int distance = idistance (dx, dy);
1632 1632
1633 if (distance <= MAX_SOUND_DISTANCE) 1633 if (distance <= MAX_SOUND_DISTANCE)
1634 ns->play_sound (sound, dx, dy); 1634 ns->play_sound (sound, dx, dy);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines