projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added level's name when in pause.
[supertux.git]
/
src
/
gameloop.cpp
diff --git
a/src/gameloop.cpp
b/src/gameloop.cpp
index
fc09ba7
..
790b8af
100644
(file)
--- a/
src/gameloop.cpp
+++ b/
src/gameloop.cpp
@@
-20,16
+20,16
@@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <iostream>
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <iostream>
-#include <
assert.h
>
-#include <
stdio.h
>
-#include <
stdlib.h
>
-#include <
math.
h>
-#include <
string.h
>
-#include <
errno.h
>
+#include <
cassert
>
+#include <
cstdio
>
+#include <
cstdlib
>
+#include <
cmat
h>
+#include <
cstring
>
+#include <
cerrno
>
#include <unistd.h>
#include <unistd.h>
-#include <
math.h
>
-#include <time.h>
-#include
<SDL.h>
+#include <
ctime
>
+
+#include
"SDL.h"
#ifndef WIN32
#include <sys/types.h>
#ifndef WIN32
#include <sys/types.h>
@@
-721,7
+721,7
@@
GameSession::drawstatus(DrawingContext& context)
sprintf(str, " %d", player_status.distros);
context.draw_text(white_text, _("COINS"),
sprintf(str, " %d", player_status.distros);
context.draw_text(white_text, _("COINS"),
- Vector(screen->w - white_text->get_text_width(_("COINS"))-white_text->get_text_width(
str
), 0),
+ Vector(screen->w - white_text->get_text_width(_("COINS"))-white_text->get_text_width(
" 99"
), 0),
LAYER_FOREGROUND1);
context.draw_text(gold_text, str,
Vector(screen->w - gold_text->get_text_width(" 99"), 0),LAYER_FOREGROUND1);
LAYER_FOREGROUND1);
context.draw_text(gold_text, str,
Vector(screen->w - gold_text->get_text_width(" 99"), 0),LAYER_FOREGROUND1);
@@
-746,6
+746,14
@@
GameSession::drawstatus(DrawingContext& context)
Vector(screen->w - white_text->get_text_width(_("LIVES")) - white_text->get_text_width(" 99"), 20),
LAYER_FOREGROUND1);
Vector(screen->w - white_text->get_text_width(_("LIVES")) - white_text->get_text_width(" 99"), 20),
LAYER_FOREGROUND1);
+ if(game_pause)
+ {
+ sprintf(str, _("Playing: %s"), level->name.c_str());
+
+ context.draw_text(white_text, str, Vector(0,20),
+ LAYER_FOREGROUND1);
+ }
+
if(show_fps)
{
sprintf(str, "%2.1f", fps_fps);
if(show_fps)
{
sprintf(str, "%2.1f", fps_fps);