[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r2485 - trunk/src
From: |
David Philippi at BerliOS |
Subject: |
[Pingus-CVS] r2485 - trunk/src |
Date: |
Sun, 6 Nov 2005 18:10:08 +0100 |
Author: torangan
Date: 2005-11-06 18:10:08 +0100 (Sun, 06 Nov 2005)
New Revision: 2485
Modified:
trunk/src/time_display.cxx
Log:
patch to correct display of time
Modified: trunk/src/time_display.cxx
===================================================================
--- trunk/src/time_display.cxx 2005-11-06 17:09:30 UTC (rev 2484)
+++ trunk/src/time_display.cxx 2005-11-06 17:10:08 UTC (rev 2485)
@@ -47,30 +47,23 @@
std::string time_string;
if (server->get_plf().get_time() == -1 && !(pingus_debug_flags &
PINGUS_DEBUG_GAMETIME))
- {
- infinity_symbol.draw(CL_Display::get_width()
- - infinity_symbol.get_width() - 6,
- 2);
- }
+ {
+ gc.draw(infinity_symbol,
static_cast<float>(CL_Display::get_width()
+ - infinity_symbol.get_width() - 6), 2.0f,
150.0f);
+ }
else
- {
- if (!(pingus_debug_flags & PINGUS_DEBUG_GAMETIME))
{
- time_string = GameTime::ticks_to_realtime_string(time_value);
- }
- else
- {
- time_value = server->get_world()->get_time_passed();
- time_string = CL_String::to(time_value);
- }
- {
- CL_Font myfont = font;
- myfont.set_alignment(origin_top_center);
- myfont.draw(CL_Display::get_width() - 30, 3, time_string);
- }
- }
+ if (!(pingus_debug_flags & PINGUS_DEBUG_GAMETIME))
+ time_string =
GameTime::ticks_to_realtime_string(time_value);
+ else
+ {
+ time_value = server->get_world()->get_time_passed();
+ time_string = CL_String::to(time_value);
+ }
- UNUSED_ARG(gc);
+ gc.print_right(font, static_cast<float>(CL_Display::get_width()
- 30),
+
3.0f, time_string, 150.0f);
+ }
}
} // namespace Pingus
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r2485 - trunk/src,
David Philippi at BerliOS <=