From 4b06b75fa9938b8dc296c5ed5c1a1549ea3e2ed8 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Tue, 22 Jun 2004 12:20:22 +0000 Subject: [PATCH] Don't show "by", in case the author name is blank. SVN-Revision: 1506 --- src/gameloop.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 60aa30561..32dbbf4bf 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -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); -- 2.11.0