Fix Ignore Module / NPC highlighting

Edu removed the spacer character.
Don't know if it was intentional or not, I will just add it here again.
This commit is contained in:
Samuel
2013-01-09 23:54:57 +01:00
parent 1784bd9f26
commit 59594b4ac2
2 changed files with 3 additions and 2 deletions

View File

@@ -52,6 +52,9 @@ void BitmapFont::load(const OTMLNodePtr& fontNode)
m_glyphsSize[32].setWidth(spaceWidth);
m_glyphsSize[160].setWidth(spaceWidth);
// use 127 as spacer [Width: 1], Important for the current NPC highlighting system
m_glyphsSize[127].setWidth(1);
// new line actually has a size that will be useful in multiline algorithm
m_glyphsSize[(uchar)'\n'] = Size(1, m_glyphHeight);