--- deliantra/server/include/player.h 2007/07/01 05:00:18 1.64 +++ deliantra/server/include/player.h 2007/07/26 00:27:08 1.65 @@ -182,6 +182,12 @@ void do_destroy (); void gather_callbacks (AV *&callbacks, event_type event) const; + MTH void play_sound (faceidx sound, int dx = 0, int dy = 0) const + { + if (ns) + ns->play_sound (sound, dx, dy); + } + // wether the player can "see" this mapspace or not, decided by los // 0 - nothing see, 100 - fully visible MTH sint8 visibility_at (maptile *map, int x, int y) const; @@ -209,6 +215,6 @@ extern playervec players; #define for_all_players(var) \ - for (unsigned _i = 0; _i < players.size (); ++_i) \ - statementvar (player *, var, players [_i]) + for (unsigned _i = 0; _i < ::players.size (); ++_i) \ + statementvar (player *, var, ::players [_i])