- fixed align of lives display to handle >10 lives
authorIngo Ruhnke <grumbel@gmx.de>
Thu, 29 Apr 2004 00:51:23 +0000 (00:51 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Thu, 29 Apr 2004 00:51:23 +0000 (00:51 +0000)
SVN-Revision: 829

src/gameloop.cpp
src/worldmap.cpp

index 4e4c622..b739d05 100644 (file)
@@ -692,7 +692,7 @@ GameSession::drawstatus()
   if (player_status.lives >= 5)
     {
       sprintf(str, "%dx", player_status.lives);
-      gold_text->draw(str, 585, 20);
+      gold_text->draw_align(str, 617, 20, A_RIGHT, A_TOP);
       tux_life->draw(565+(18*3), 20);
     }
   else
index 826f226..fbe34c9 100644 (file)
@@ -826,7 +826,7 @@ WorldMap::draw_status()
   if (player_status.lives >= 5)
     {
       sprintf(str, "%dx", player_status.lives);
-      gold_text->draw(str, 585, 0);
+      gold_text->draw_align(str, 617, 0, A_RIGHT, A_TOP);
       tux_life->draw(565+(18*3), 0);
     }
   else