ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/util/world2pst
(Generate patch)

Comparing deliantra/util/world2pst (file contents):
Revision 1.1 by root, Sat Sep 2 15:48:27 2006 UTC vs.
Revision 1.2 by root, Sun Sep 24 12:14:27 2006 UTC

1#!/opt/bin/perl 1#!/opt/bin/perl
2 2
3use Crossfire::Map; 3use Crossfire::Map;
4use Storable; 4use Storable;
5use POSIX ();
5 6
6use Gtk2 -init; 7use Gtk2 -init;
7 8
8my $maps; 9my $maps;
9 10
10for my $X (100..129) { 11for my $X (100..129) {
11 print "$X\n"; 12 print "$X\n";
12 for my $Y (100..129) { 13 for my $Y (100..129) {
13 my $map = new_from_file Crossfire::Map "maps/world/world_$X\_$Y" 14 my $map = new_from_file Crossfire::Map "../maps/world/world_$X\_$Y"
14 or die "$X,$Y\n"; 15 or die "$X,$Y\n";
15 $maps->[$X][$Y] = $map; 16 $maps->[$X][$Y] = $map;
16 } 17 }
17} 18}
18 19
19Storable::store $maps, "worldmaps.pst"; 20Storable::store $maps, "worldmaps.pst";
21POSIX::_exit 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines