From: Ricardo Cruz Date: Tue, 22 Jun 2004 12:20:22 +0000 (+0000) Subject: Don't show "by", in case the author name is blank. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4b06b75fa9938b8dc296c5ed5c1a1549ea3e2ed8;p=supertux.git Don't show "by", in case the author name is blank. SVN-Revision: 1506 --- 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);