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

Comparing deliantra/server/ext/map-prefetch.ext (file contents):
Revision 1.3 by root, Sat Dec 30 10:16:10 2006 UTC vs.
Revision 1.4 by root, Sun Jan 7 02:39:14 2007 UTC

122{ 122{
123 my @players; 123 my @players;
124 124
125 Event->timer (interval => 0.2, data => cf::WF_AUTOCANCEL, cb => sub { 125 Event->timer (interval => 0.2, data => cf::WF_AUTOCANCEL, cb => sub {
126 @players = map $_->ob->name, cf::player::list unless @players; 126 @players = map $_->ob->name, cf::player::list unless @players;
127 my $player = cf::player::find pop @players 127 my $player = cf::player::find_active pop @players
128 or return; 128 or return;
129 129
130 if (my $map = $player->ob->map) { 130 if (my $map = $player->ob->map) {
131 prefetch_map $map; 131 prefetch_map $map;
132 } 132 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines