Don't show "by", in case the author name is blank.
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 22 Jun 2004 12:20:22 +0000 (12:20 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 22 Jun 2004 12:20:22 +0000 (12:20 +0000)
SVN-Revision: 1506

src/gameloop.cpp

index 60aa305..32dbbf4 100644 (file)
@@ -158,8 +158,9 @@ GameSession::levelintro(void)
   sprintf(str, "TUX x %d", player_status.lives);
   context.draw_text_center(white_text, str, Vector(0, 240),
       LAYER_FOREGROUND1);
-  
-  context.draw_text_center(white_small_text,
+
+  if(level->get_author().size())
+    context.draw_text_center(white_small_text,
       std::string(_("by ")) + level->get_author(), 
       Vector(0, 400), LAYER_FOREGROUND1);