X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftile_manager.cpp;h=d301867e3c7c1d93a4ddfa67f439b8ab179706ef;hb=07ddaed2a657e4d2a3d038fed223fc5827159caf;hp=c551acd757b85e35b7f4d9af29e76929b9761d72;hpb=67690e081c28b818e94796be284206326bc8a6b9;p=supertux.git diff --git a/src/tile_manager.cpp b/src/tile_manager.cpp index c551acd75..d301867e3 100644 --- a/src/tile_manager.cpp +++ b/src/tile_manager.cpp @@ -1,7 +1,8 @@ // $Id$ -// +// // SuperTux // Copyright (C) 2004 Tobias Glaesser +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -12,7 +13,7 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA @@ -26,7 +27,7 @@ #include #include #include "video/drawing_context.hpp" -#include "msg.hpp" +#include "log.hpp" #include "lisp/lisp.hpp" #include "lisp/parser.hpp" #include "lisp/list_iterator.hpp" @@ -41,7 +42,7 @@ TileManager::TileManager(const std::string& filename) #endif load_tileset(filename); #ifdef DEBUG - msg_debug << "Tiles loaded in " << (SDL_GetTicks() - ticks) / 1000.0 << " seconds" << std::endl; + log_debug << "Tiles loaded in " << (SDL_GetTicks() - ticks) / 1000.0 << " seconds" << std::endl; #endif } @@ -81,7 +82,7 @@ void TileManager::load_tileset(std::string filename) tiles.push_back(0); } if(tiles[tile->id] != 0) { - msg_warning << "Tile with ID " << tile->id << " redefined" << std::endl; + log_warning << "Tile with ID " << tile->id << " redefined" << std::endl; } tiles[tile->id] = tile; } else if(iter.item() == "tilegroup") { @@ -138,7 +139,7 @@ void TileManager::load_tileset(std::string filename) } else if(iter.item() == "properties") { // deprecated } else { - msg_warning << "Unknown symbol '" << iter.item() << "' tile defintion file" << std::endl; + log_warning << "Unknown symbol '" << iter.item() << "' tile defintion file" << std::endl; } } }