Corrected bad placement of TextObject during runtime.

git-svn-id: svn://localhost@39 8062f311-0dae-4547-b526-b8ab9ac864a5
This commit is contained in:
Florian
2010-02-10 17:50:35 +00:00
parent 852346872c
commit 3caf4dfc4d
4 changed files with 31 additions and 5021 deletions
+2 -2
View File
@@ -126,8 +126,8 @@ bool TextObject::Draw( sf::RenderWindow& window )
//Don't draw anything if hidden
if ( hidden ) return true;
text.SetX( GetX()-text.GetRect().GetSize().x/2 );
text.SetY( GetY()-text.GetRect().GetSize().y/2 );
text.SetX( GetX()+text.GetRect().GetSize().x/2 );
text.SetY( GetY()+text.GetRect().GetSize().y/2 );
text.SetColor(sf::Color(colorR, colorG, colorB, opacity));
text.SetOrigin(text.GetRect().GetSize().x/2, text.GetRect().GetSize().y/2);
text.SetRotation(-angle);