From a4dc0a96b55c0838938112decc8c667f05781b23 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 5 Nov 2003 05:10:19 +0000 Subject: [PATCH] Fix derived SetHorizAlign not being called. --- stepmania/src/Actor.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 5430fadfe3..cd34add286 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -397,18 +397,18 @@ void Actor::ScaleTo( const RectI &rect, StretchType st ) void Actor::SetHorizAlign( CString s ) { s.MakeLower(); - if (s=="left") m_HorizAlign = align_left; - else if(s=="center") m_HorizAlign = align_center; - else if(s=="right") m_HorizAlign = align_right; + if (s=="left") SetHorizAlign( align_left ); /* call derived */ + else if(s=="center") SetHorizAlign( align_center ); + else if(s=="right") SetHorizAlign( align_right ); else ASSERT(0); } void Actor::SetVertAlign( CString s ) { s.MakeLower(); - if (s=="top") m_VertAlign = align_top; - else if(s=="middle") m_VertAlign = align_middle; - else if(s=="bottom") m_VertAlign = align_bottom; + if (s=="top") SetVertAlign( align_top ); /* call derived */ + else if(s=="middle") SetVertAlign( align_middle ); + else if(s=="bottom") SetVertAlign( align_bottom ); else ASSERT(0); }