--- deliantra/server/socket/sounds.C 2006/12/13 21:27:09 1.6 +++ deliantra/server/socket/sounds.C 2006/12/21 23:37:06 1.10 @@ -26,7 +26,7 @@ { char soundtype; - if (!pl->socket.sound) + if (!pl->ns->sound) return; /* Do some quick conversion to the sound type we want. */ @@ -38,7 +38,7 @@ else soundtype = SOUND_NORMAL; - SockList sl (MAXSOCKBUF); + packet sl; sl << "sound " << uint8 (x) @@ -46,8 +46,7 @@ << uint16 (soundnum) << uint8 (soundtype); - Send_With_Handling (&pl->socket, &sl); - sl.free (); + pl->ns->send_packet (sl); } #define POW2(x) ((x) * (x))