Moved some console commands' implementations nearer to target classes
[supertux.git] / src / tile_manager.hpp
index e5ab109..5cd6fc2 100644 (file)
 #include <vector>
 #include <string>
 #include <map>
+#include <iostream>
 #include <stdint.h>
 #include <assert.h>
+#include "msg.hpp"
 #include "tile.hpp"
 
 struct TileGroup
@@ -68,7 +70,7 @@ public:
     assert(id < tiles.size());
     Tile* tile = tiles[id];
     if(!tile) {
-      std::cout << "TileManager: Invalid tile: " << id << std::endl;
+      msg_warning << "Invalid tile: " << id << std::endl;
       return tiles[0];
     }