ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/utils/cfutil.in
(Generate patch)

Comparing deliantra/server/utils/cfutil.in (file contents):
Revision 1.24 by root, Thu Apr 12 14:18:06 2007 UTC vs.
Revision 1.26 by root, Tue Apr 17 19:12:34 2007 UTC

20use Crossfire; 20use Crossfire;
21use Coro; 21use Coro;
22use Coro::AIO; 22use Coro::AIO;
23use POSIX (); 23use POSIX ();
24use Digest::MD5; 24use Digest::MD5;
25use Storable; $Storable::canonical = 1; 25use Coro::Storable; $Storable::canonical = 1;
26 26
27sub usage { 27sub usage {
28 warn <<EOF; 28 warn <<EOF;
29Usage: cfutil [-v] [-q] [--force] [--cache] 29Usage: cfutil [-v] [-q] [--force] [--cache]
30 [--install-arch path] 30 [--install-arch path]
276 my $x = $o->{x} - $dx; 276 my $x = $o->{x} - $dx;
277 my $y = $o->{y} - $dy; 277 my $y = $o->{y} - $dy;
278 278
279 my $ext = $x|$y ? "+$x+$y" : ""; 279 my $ext = $x|$y ? "+$x+$y" : "";
280 280
281 $o->{face} .= $ext unless /^blank.x11$|^empty.x11$/; 281 $o->{face} .= $ext unless /^blank.x11$|^empty.x11$/ || !$o->{face};
282 282
283 my $visibility = delete $o->{visibility} if exists $o->{visibility}; 283 my $visibility = delete $o->{visibility} if exists $o->{visibility};
284 my $magicmap = delete $o->{magicmap} if exists $o->{magicmap}; 284 my $magicmap = delete $o->{magicmap} if exists $o->{magicmap};
285 285
286 my $anim = delete $o->{anim}; 286 my $anim = delete $o->{anim};
419 } 419 }
420 420
421 open my $fh, ">:perlio", "$DATADIR/facedata~" 421 open my $fh, ">:perlio", "$DATADIR/facedata~"
422 or die "$DATADIR/facedata~: $!"; 422 or die "$DATADIR/facedata~: $!";
423 423
424 print $fh Storable::nfreeze { 424 print $fh freeze {
425 version => 2, 425 version => 2,
426 faceinfo => \%FACEINFO, 426 faceinfo => \%FACEINFO,
427 animinfo => \%ANIMINFO, 427 animinfo => \%ANIMINFO,
428 }; 428 };
429 } 429 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines