X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fworldmap%2Fteleporter.cpp;h=b4425ed6ee278822231f4e030080593ea2f8d916;hb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;hp=d1a7ffbbbfdbb5d8c003d002a0c24dfdeb1e69a5;hpb=f406067af6cbeb0a638078fe1d386d092583909c;p=supertux.git diff --git a/src/worldmap/teleporter.cpp b/src/worldmap/teleporter.cpp index d1a7ffbbb..b4425ed6e 100644 --- a/src/worldmap/teleporter.cpp +++ b/src/worldmap/teleporter.cpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux - Teleporter Worldmap Tile // Copyright (C) 2006 Christoph Sommer // -// 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 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 3 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 @@ -14,17 +12,15 @@ // 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. +// along with this program. If not, see . #include -#include "worldmap/teleporter.hpp" -#include "sprite/sprite_manager.hpp" #include "sprite/sprite.hpp" +#include "sprite/sprite_manager.hpp" #include "video/drawing_context.hpp" +#include "worldmap/teleporter.hpp" -namespace WorldMapNS -{ +namespace WorldMapNS { Teleporter::Teleporter(const lisp::Lisp* lisp) : automatic(false) @@ -34,7 +30,7 @@ Teleporter::Teleporter(const lisp::Lisp* lisp) std::string spritefile = ""; if (lisp->get("sprite", spritefile)) { - sprite.reset(sprite_manager->create(spritefile)); + sprite = sprite_manager->create(spritefile); } lisp->get("worldmap", worldmap); @@ -55,3 +51,5 @@ Teleporter::update(float ) } } + +/* EOF */