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.22 by root, Thu Apr 5 13:50:49 2007 UTC vs.
Revision 1.23 by root, Tue Apr 10 09:35:24 2007 UTC

182 } 182 }
183 } 183 }
184 184
185 (my $face = $stem) =~ s/^.*\///; 185 (my $face = $stem) =~ s/^.*\///;
186 186
187 # split all bigfaces, but avoid smoothfaces (*_S)
187 if (($w > $T || $h > $T) && $face !~ /_S\./) { 188 if (($w > $T || $h > $T) && $face !~ /_S\./) {
188 # split 189 # split
189 my @tile; 190 my @tile;
190 for my $x (0 .. (int $w / $T) - 1) { 191 for my $x (0 .. (int $w / $T) - 1) {
191 for my $y (0 .. (int $h / $T) - 1) { 192 for my $y (0 .. (int $h / $T) - 1) {
306 $info->{visibility} = $visibility if defined $visibility; 307 $info->{visibility} = $visibility if defined $visibility;
307 $info->{magicmap} = $magicmap if defined $magicmap; 308 $info->{magicmap} = $magicmap if defined $magicmap;
308 } 309 }
309 310
310 if (my $smooth = delete $o->{smoothface}) { 311 if (my $smooth = delete $o->{smoothface}) {
311 my ($face, $smooth) = split /\s+/, $smooth; 312 my %kv =split /\s+/, $smooth;
312 # skip empty_S.x11, it seems to server no purpose whatsoever 313 my $level = $o->{smoothlevel}; #TODO: delete from $o if !gcfclient-support
313 # but increases bandwidth demands and worse. 314 while (my ($face, $smooth) = each %kv) {
314 unless ($smooth eq "empty_S.x11") {
315 $FACEINFO{$face}{smooth} = $smooth; 315 $FACEINFO{$face}{smooth} = $smooth;
316 $FACEINFO{$face}{smoothlevel} = $level;
316 } 317 }
317 } 318 }
318 } 319 }
319 } 320 }
320 } 321 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines