X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fspawn_point.cpp;h=8cfd13a8c5a566d5df584e9db967fd4ca49dc571;hb=013a5ca196545a094f27c1b708facd0084d58d55;hp=c0647fb49bc044bd7f73b57072242ba7c8a8a039;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/spawn_point.cpp b/src/spawn_point.cpp index c0647fb49..8cfd13a8c 100644 --- a/src/spawn_point.cpp +++ b/src/spawn_point.cpp @@ -1,3 +1,22 @@ +// $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 @@ -5,6 +24,7 @@ #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; } }