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

Comparing deliantra/server/ext/map-world.ext (file contents):
Revision 1.33 by root, Tue Apr 15 14:21:04 2008 UTC vs.
Revision 1.34 by root, Tue Sep 23 04:29:11 2008 UTC

85 $WORLD = load_gridmap "$MAPDIR/world"; 85 $WORLD = load_gridmap "$MAPDIR/world";
86 warn "worldmap gridmap loaded."; 86 warn "worldmap gridmap loaded.";
87} 87}
88 88
89# this is contorted, but likely the correct way to acquire the lock :) 89# this is contorted, but likely the correct way to acquire the lock :)
90cf::sync_job { 90cf::post_init {
91 my $guard = cf::lock_acquire "ext::world_gridmap"; 91 my $guard = cf::lock_acquire "ext::world_gridmap";
92 cf::async_ext { 92 cf::async_ext {
93 $Coro::current->{desc} = "worldmap loader"; 93 $Coro::current->{desc} = "worldmap loader";
94 reload; 94 reload;
95 undef $guard; 95 undef $guard;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines