Remove special case for char 0x20 (=space). No idea why it was there in the first place

svn-id: r18335
This commit is contained in:
Max Horn 2005-06-04 13:19:53 +00:00
parent 5d84b5afe3
commit 206d11f585

View File

@ -29,8 +29,6 @@ int NewFont::getCharWidth(byte chr) const {
return desc.maxwidth;
// If this character is not included in the font, use the default char.
if (chr < desc.firstchar || desc.firstchar + desc.size < chr) {
if (chr == ' ')
return desc.maxwidth / 2;
chr = desc.defaultchar;
}
return desc.width[chr - desc.firstchar];
@ -45,8 +43,6 @@ void NewFont::drawChar(Surface *dst, byte chr, int tx, int ty, uint32 color) con
// If this character is not included in the font, use the default char.
if (chr < desc.firstchar || chr >= desc.firstchar + desc.size) {
if (chr == ' ')
return;
chr = desc.defaultchar;
}