Changing KX_FontObject to look for a "Text" game property instead of a "text" property to match with bitmap font usage.

This commit is contained in:
Daniel Stokes
2011-12-31 09:37:19 +00:00
parent 59b406ce73
commit 359a95bdc9

View File

@@ -118,8 +118,8 @@ void KX_FontObject::ProcessReplica()
void KX_FontObject::DrawText()
{
/* Allow for some logic brick control */
if(this->GetProperty("text"))
m_text = split_string(this->GetProperty("text")->GetText());
if(this->GetProperty("Text"))
m_text = split_string(this->GetProperty("Text")->GetText());
/* only draws the text if visible */
if(this->GetVisible() == 0) return;