too much red in the console ;-)

This commit is contained in:
Titus Tscharntke 2011-01-01 22:08:34 +00:00
parent 13c6fb49b3
commit 23f9d29769
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ Console::Console() {
yPos=20;
lineHeight=20;
font=CoreData::getInstance().getConsoleFont();
stringToHighlight="";
}
void Console::addStdMessage(const string &s) {

View File

@ -909,7 +909,7 @@ void Renderer::renderConsoleLine(int lineIndex, int xPosition, int yPosition, in
fontColor = defaultFontColor;
}
if(lineInfo->text.find(stringToHightlight)!=string::npos){
if(stringToHightlight!="" && lineInfo->text.find(stringToHightlight)!=string::npos){
fontColor=Vec4f(1.f, 0.5f, 0.5f, 0.0f);
}
renderTextShadow(