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.106 by root, Wed Oct 20 06:21:48 2010 UTC vs.
Revision 1.108 by root, Wed Oct 20 06:50:58 2010 UTC

1#!@PERL@ 1#!@PERL@
2 2
3# 3#
4# This file is part of Deliantra, the Roguelike Realtime MMORPG. 4# This file is part of Deliantra, the Roguelike Realtime MMORPG.
5# 5#
6# Copyright (©) 2007,2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 6# Copyright (©) 2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
7# 7#
8# Deliantra is free software: you can redistribute it and/or modify it under 8# Deliantra is free software: you can redistribute it and/or modify it under
9# the terms of the Affero GNU General Public License as published by the 9# the terms of the Affero GNU General Public License as published by the
10# Free Software Foundation, either version 3 of the License, or (at your 10# Free Software Foundation, either version 3 of the License, or (at your
11# option) any later version. 11# option) any later version.
455 my $fi = $FACEINFO{$face} ||= { }; 455 my $fi = $FACEINFO{$face} ||= { };
456 $fi->{visibility} = $visibility * 1; 456 $fi->{visibility} = $visibility * 1;
457 $fi->{magicmap} = $fgi; # foreground colour becomes magicmap 457 $fi->{magicmap} = $fgi; # foreground colour becomes magicmap
458 458
459 $glyph .= " " if 2 > length $glyph; # TODO kanji 459 $glyph .= " " if 2 > length $glyph; # TODO kanji
460 die "glyph $face too long" if 2 < length $glyph;
460 461
461 $fi->{glyph} = ""; 462 $fi->{glyph} = "";
462 for (split //, $glyph, -1) { 463 for (split //, $glyph) {
463 utf8::encode $_; 464 utf8::encode $_;
464 $fi->{glyph} .= (chr $fgi) . (chr $bgi) . $_; 465 $fi->{glyph} .= (chr $fgi) . (chr $bgi) . $_;
465 } 466 }
466 } 467 }
467 } 468 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines