--- deliantra/server/utils/cfutil.in 2007/03/11 21:26:06 1.8 +++ deliantra/server/utils/cfutil.in 2007/03/11 22:36:53 1.9 @@ -221,7 +221,7 @@ my $ext = $x|$y ? "+$x+$y" : ""; - $o->{face} .= $ext; + $o->{face} .= $ext unless /^blank.x11$|^empty.x11$/; my $visibility = delete $o->{visibility} if exists $o->{visibility}; my $magicmap = delete $o->{magicmap} if exists $o->{magicmap}; @@ -232,7 +232,7 @@ $o->{animation} = "$o->{_name}"; for (@$anim) { - $_ .= $ext unless /^facings\s/; + $_ .= $ext unless /^facings\s|^blank.x11$|^empty.x11$/; } $ANIM{"$o->{_name}$ext"} = @@ -243,7 +243,7 @@ } for my $face ($o->{face} || (), @{$anim || []}) { - next if /^facings\s/; + next if $face =~ /^facings\s|^blank.x11$|^empty.x11$/; my $info = $FACEINFO{$face} ||= {}; @@ -323,7 +323,7 @@ } while (my ($k, $v) = each %FACEINFO) { - exists $v->{data32} or warn "$k: face has no png32. this will crash the server.\n"; + length $v->{data32} or warn "$k: face has no png32. this will crash the server.\n"; $v->{chksum32} = Digest::MD5::md5 $v->{data32}; }