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.8 by root, Sat Jan 27 23:59:29 2007 UTC vs.
Revision 1.10 by root, Sat Feb 10 01:52:27 2007 UTC

114 $self->name ("'The World' at +$x+$y"); 114 $self->name ("'The World' at +$x+$y");
115 $self->msg ("worldmap dynamically created by map-world extension"); 115 $self->msg ("worldmap dynamically created by map-world extension");
116 $self->outdoor (1); 116 $self->outdoor (1);
117 $self->default_region (undef); 117 $self->default_region (undef);
118 118
119# $self->tile_path (0, sprintf "/world/world_%03d_%03d", $x, $y - 1) if $y > 0; 119# $self->tile_path (0, sprintf "/world/world_%03d_%03d", $x, $y - 1) if $y > 0;
120# $self->tile_path (1, sprintf "/world/world_%03d_%03d", $x + 1, $y) if $x < 999; 120# $self->tile_path (1, sprintf "/world/world_%03d_%03d", $x + 1, $y) if $x < 999;
121# $self->tile_path (2, sprintf "/world/world_%03d_%03d", $x, $y + 1) if $y < 999; 121# $self->tile_path (2, sprintf "/world/world_%03d_%03d", $x, $y + 1) if $y < 999;
122# $self->tile_path (3, sprintf "/world/world_%03d_%03d", $x - 1, $y) if $x > 0; 122# $self->tile_path (3, sprintf "/world/world_%03d_%03d", $x - 1, $y) if $x > 0;
123 $self->tile_path (0, sprintf "/world/world_%03d_%03d", $x, $y - 1) if $y > 100; 123 $self->tile_path (0, sprintf "/world/world_%03d_%03d", $x, $y - 1) if $y > 100;
124 $self->tile_path (1, sprintf "/world/world_%03d_%03d", $x + 1, $y) if $x < 129; 124 $self->tile_path (1, sprintf "/world/world_%03d_%03d", $x + 1, $y) if $x < 129;
125 $self->tile_path (2, sprintf "/world/world_%03d_%03d", $x, $y + 1) if $y < 129; 125 $self->tile_path (2, sprintf "/world/world_%03d_%03d", $x, $y + 1) if $y < 129;
126 $self->tile_path (3, sprintf "/world/world_%03d_%03d", $x - 1, $y) if $x > 100; 126 $self->tile_path (3, sprintf "/world/world_%03d_%03d", $x - 1, $y) if $x > 100;
127 127
145 my $ob = cf::object::new "deep_sea"; 145 my $ob = cf::object::new "deep_sea";
146 $self->insert ($ob, $X, $Y); 146 $self->insert ($ob, $X, $Y);
147 } 147 }
148 } 148 }
149 $self->set_object_flag (cf::FLAG_NO_MAP_SAVE, 1); 149 $self->set_object_flag (cf::FLAG_NO_MAP_SAVE, 1);
150 $self->default_region (cf::region::find "ocean");
150 151
151 $self->in_memory (cf::MAP_IN_MEMORY); 152 $self->in_memory (cf::MAP_IN_MEMORY);
152 } 153 }
153} 154}
154 155

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines