-modified moving platform class to make use of the new path class.
[supertux.git] / src / object / level_time.cpp
index fc0ae13..591df80 100644 (file)
@@ -1,16 +1,16 @@
 #include <config.h>
 
-#include "level_time.h"
+#include "level_time.hpp"
 
 #include <stdexcept>
-#include "main.h"
-#include "resources.h"
-#include "sector.h"
-#include "gettext.h"
-#include "object_factory.h"
-#include "object/player.h"
-#include "video/drawing_context.h"
-#include "lisp/list_iterator.h"
+#include "main.hpp"
+#include "resources.hpp"
+#include "sector.hpp"
+#include "gettext.hpp"
+#include "object_factory.hpp"
+#include "object/player.hpp"
+#include "video/drawing_context.hpp"
+#include "lisp/list_iterator.hpp"
 
 /** When to alert player they're low on time! */
 static const float TIME_WARNING = 20;
@@ -56,7 +56,7 @@ LevelTime::draw(DrawingContext& context)
     context.draw_text(white_text, _("TIME's UP"), Vector(SCREEN_WIDTH/2, 0),
         CENTER_ALLIGN, LAYER_FOREGROUND1);
   } else if (time_left.get_timeleft() > TIME_WARNING
-      || int(global_time * 2.5) % 2) {
+      || int(game_time * 2.5) % 2) {
     snprintf(str, sizeof(str), " %d", int(time_left.get_timeleft()));
     context.draw_text(white_text, _("TIME"),
         Vector(SCREEN_WIDTH/2, 0), CENTER_ALLIGN, LAYER_FOREGROUND1);