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.35 by root, Tue Sep 23 05:01:41 2008 UTC vs.
Revision 1.38 by root, Thu Apr 29 07:32:34 2010 UTC

81 Coro::Storable::thaw $map 81 Coro::Storable::thaw $map
82} 82}
83 83
84sub reload() { 84sub reload() {
85 $WORLD = load_gridmap "$MAPDIR/world"; 85 $WORLD = load_gridmap "$MAPDIR/world";
86 warn "worldmap gridmap loaded."; 86 cf::trace "worldmap gridmap loaded.\n";
87} 87}
88 88
89{ 89{
90 my $guard = cf::lock_acquire "ext::world_gridmap"; 90 my $guard = cf::lock_acquire "ext::world_gridmap";
91 91
135} 135}
136 136
137sub fill { 137sub fill {
138 my ($self) = @_; 138 my ($self) = @_;
139 139
140 $self->add_underlay ("\x00" x ($WORLD->{tile_w} * $WORLD->{tile_h}), 0, $WORLD->{tile_w}, $WORLD->{arc_plt}); 140 $self->add_underlay ("\x00" x ($WORLD->{tile_w} * $WORLD->{tile_h}), 0, $WORLD->{tile_w}, $WORLD->{arc_plt});#d#
141 $self->default_region (cf::region::find $WORLD->{reg_plt}[0]); 141 $self->default_region (cf::region::find $WORLD->{reg_plt}[0]);
142} 142}
143 143
144sub load { 144sub load {
145 my ($self) = @_; 145 my ($self) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines