--- deliantra/server/utils/cfutil.in 2007/03/12 17:33:12 1.13 +++ deliantra/server/utils/cfutil.in 2007/03/14 16:23:26 1.17 @@ -22,6 +22,7 @@ use Coro::AIO; use POSIX (); use Digest::MD5; +use Storable; $Storable::canonical = 1; sub usage { warn <{smoothface}) { - $SMOOTH .= "$smooth\n"; + my ($face, $smooth) = split /\s+/, $smooth; + # skip empty_S.x11, it seems to server no purpose whatsoever + # but increases bandwidth demands and worse. + unless ($smooth eq "empty_S.x11") { + $FACEINFO{$face}{smooth} = $smooth; + } } } } @@ -339,12 +344,6 @@ } { - open my $fh, ">:utf8", "$DATADIR/smooth~" - or die "$DATADIR/smooth~: $!"; - print $fh $SMOOTH; - } - - { open my $fh, ">:utf8", "$DATADIR/treasures~" or die "$DATADIR/treasures~: $!"; print $fh $TRS; @@ -364,10 +363,11 @@ open my $fh, ">:perlio", "$DATADIR/faces~" or die "$DATADIR/faces~: $!"; + $FACEINFO{""} = { version => 1}; print $fh Storable::nfreeze \%FACEINFO; } - for (qw(archetypes faces animations treasures smooth)) { + for (qw(archetypes faces animations treasures)) { chmod 0644, "$DATADIR/$_~"; rename "$DATADIR/$_~", "$DATADIR/$_" or die "$DATADIR/$_: $!";