--- deliantra/server/ext/player-env.ext 2007/07/12 19:36:57 1.7 +++ deliantra/server/ext/player-env.ext 2007/07/23 21:02:50 1.10 @@ -25,6 +25,8 @@ for (keys %MUSIC_QUEUE) { delete $MUSIC_QUEUE{$_}; + cf::get_slot 0.01, -10, "music scheduler"; + my $pl = cf::player::find_active $_ or next; $pl->ob->active or next; my $ns = $pl->ns or next; @@ -76,9 +78,7 @@ push @{$msg->{faces}}, [$_, $pri++, cf::face::get_chksum $_] for grep $ns->must_send_face ($_), @$faces; - $ns->ext_event (music => %$msg); - - cf::cede_to_tick; + $ns->ext_msg (music => %$msg); } Coro::schedule unless %MUSIC_QUEUE; }