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.32 by root, Wed Dec 5 11:08:34 2007 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;
145 if ($self->{load_path}) { 145 if ($self->{load_path}) {
146 $self->SUPER::load; 146 $self->SUPER::load;
147 } else { 147 } else {
148 $self->alloc; 148 $self->alloc;
149 $self->fill; 149 $self->fill;
150 $self->in_memory (cf::MAP_IN_MEMORY); 150 $self->in_memory (cf::MAP_ACTIVE);
151 $self->activate; 151 $self->activate;
152 } 152 }
153} 153}
154 154
155sub post_load { 155sub post_load {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines