X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fspawn_point.cpp;h=8cfd13a8c5a566d5df584e9db967fd4ca49dc571;hb=1a494bee8b3089a2e032488897ef6bac575bb32b;hp=59062322edfdd4bb9c3ad553fb689c624eadb72c;hpb=6a07a15af65f88cacbee1f9400d281df11e892a5;p=supertux.git diff --git a/src/spawn_point.cpp b/src/spawn_point.cpp index 59062322e..8cfd13a8c 100644 --- a/src/spawn_point.cpp +++ b/src/spawn_point.cpp @@ -1,10 +1,30 @@ +// $Id$ +// +// SuperTux +// 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 +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// 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 02111-1307, USA. + #include #include #include -#include "spawn_point.h" -#include "lisp/lisp.h" -#include "lisp/list_iterator.h" +#include "spawn_point.hpp" +#include "lisp/lisp.hpp" +#include "lisp/list_iterator.hpp" +#include "log.hpp" SpawnPoint::SpawnPoint() {} @@ -27,8 +47,7 @@ SpawnPoint::SpawnPoint(const lisp::Lisp* slisp) } else if(token == "y") { iter.value()->get(pos.y); } else { - std::cerr << "Warning: unknown token '" << token - << "' in SpawnPoint\n"; + log_warning << "unknown token '" << token << "' in SpawnPoint" << std::endl; } }