projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
383caad
)
Don't show "by", in case the author name is blank.
author
Ricardo Cruz
<rick2@aeiou.pt>
Tue, 22 Jun 2004 12:20:22 +0000
(12:20 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Tue, 22 Jun 2004 12:20:22 +0000
(12:20 +0000)
SVN-Revision: 1506
src/gameloop.cpp
patch
|
blob
|
history
diff --git
a/src/gameloop.cpp
b/src/gameloop.cpp
index
60aa305
..
32dbbf4
100644
(file)
--- 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);