Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16642/src
Modified Files:
gameloop.cpp
Log Message:
Don't show "by", in case the author name is blank.
Index: gameloop.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/gameloop.cpp,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -d -r1.152 -r1.153
--- gameloop.cpp 10 Jun 2004 13:54:20 -0000 1.152
+++ gameloop.cpp 22 Jun 2004 12:20:22 -0000 1.153
@@ -158,8 +158,9 @@
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);
|