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

Comparing deliantra/server/ext/player-env.ext (file contents):
Revision 1.8 by root, Mon Jul 23 16:53:15 2007 UTC vs.
Revision 1.10 by root, Mon Jul 23 21:02:50 2007 UTC

23our $MUSIC_SCHEDULER = cf::async_ext { 23our $MUSIC_SCHEDULER = cf::async_ext {
24 while () { 24 while () {
25 for (keys %MUSIC_QUEUE) { 25 for (keys %MUSIC_QUEUE) {
26 delete $MUSIC_QUEUE{$_}; 26 delete $MUSIC_QUEUE{$_};
27 27
28 cf::get_slot 0.01, -10; 28 cf::get_slot 0.01, -10, "music scheduler";
29 29
30 my $pl = cf::player::find_active $_ or next; 30 my $pl = cf::player::find_active $_ or next;
31 $pl->ob->active or next; 31 $pl->ob->active or next;
32 my $ns = $pl->ns or next; 32 my $ns = $pl->ns or next;
33 $ns->extcmd or next; 33 $ns->extcmd or next;
76 76
77 my $pri = 0; 77 my $pri = 0;
78 push @{$msg->{faces}}, [$_, $pri++, cf::face::get_chksum $_] 78 push @{$msg->{faces}}, [$_, $pri++, cf::face::get_chksum $_]
79 for grep $ns->must_send_face ($_), @$faces; 79 for grep $ns->must_send_face ($_), @$faces;
80 80
81 $ns->ext_event (music => %$msg); 81 $ns->ext_msg (music => %$msg);
82 } 82 }
83 Coro::schedule unless %MUSIC_QUEUE; 83 Coro::schedule unless %MUSIC_QUEUE;
84 } 84 }
85}; 85};
86 86

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines