a few fixes that I had lying around here, select walk animation in worldmap when...
[supertux.git] / src / tile_manager.cpp
index 25c4997..c9db17f 100644 (file)
@@ -24,6 +24,7 @@
 #include <sstream>
 #include <iostream>
 #include <assert.h>
+#include <SDL.h>
 #include "video/drawing_context.hpp"
 #include "lisp/lisp.hpp"
 #include "lisp/parser.hpp"
 
 TileManager::TileManager(const std::string& filename)
 {
+#ifdef DEBUG
+  Uint32 ticks = SDL_GetTicks();
+#endif
   load_tileset(filename);
+#ifdef DEBUG
+  printf("Tiles loaded in %f seconds\n", (SDL_GetTicks() - ticks) / 1000.0);
+#endif
 }
 
 TileManager::~TileManager()