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

Comparing deliantra/util/rmuniq (file contents):
Revision 1.2 by pippijn, Wed Jan 3 04:00:16 2007 UTC vs.
Revision 1.3 by root, Wed Jan 3 13:07:26 2007 UTC

1#! perl 1#! perl
2
3# this script loads all unique-item maps and removes unique exits on them,
4# because the new map file format does not have a need for exits to be marked unique.
2 5
3cf::async { 6cf::async {
4 my $maps = Coro::AIO::aio_readdir "/var/crossfire/unique-items"; 7 my $maps = Coro::AIO::aio_readdir "/var/crossfire/unique-items";
5 for my $mapname (grep !/\.pst$/, @$maps) { 8 for my $mapname (grep !/\.pst$/, @$maps) {
6 $mapname =~ s/∕/\//g; 9 $mapname =~ s/∕/\//g;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines