From: Matthias Braun Date: Sun, 28 Nov 2004 17:19:26 +0000 (+0000) Subject: remove invisible tile object as it's not needed X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d167dc13d0c3c71ab55e7d66a7fc26c290992ae2;p=supertux.git remove invisible tile object as it's not needed SVN-Revision: 2216 --- diff --git a/src/object/invisible_tile.cpp b/src/object/invisible_tile.cpp deleted file mode 100644 index 27541a6d2..000000000 --- a/src/object/invisible_tile.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include - -#include "invisible_tile.h" -#include "resources.h" -#include "special/sprite.h" -#include "special/sprite_manager.h" -#include "video/drawing_context.h" - -InvisibleTile::InvisibleTile(const Vector& pos) - : Block(pos, sprite_manager->create("invisibleblock")), visible(false) -{ - flags |= FLAG_SOLID; -} - -void -InvisibleTile::draw(DrawingContext& ) -{ -} - -void -InvisibleTile::hit(Player& ) -{ -} - diff --git a/src/object/invisible_tile.h b/src/object/invisible_tile.h deleted file mode 100644 index 0924e752a..000000000 --- a/src/object/invisible_tile.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef __INBUMPABLE_BLOCK_H__ -#define __INBUMPABLE_BLOCK_H__ - -#include "block.h" - -class InvisibleTile : public Block -{ -public: - InvisibleTile(const Vector& pos); - - virtual void draw(DrawingContext& context); - -protected: - virtual void hit(Player& player); - -private: - bool visible; -}; - -#endif - diff --git a/src/sector.cpp b/src/sector.cpp index abb28f938..6b3abe1e9 100644 --- a/src/sector.cpp +++ b/src/sector.cpp @@ -48,7 +48,6 @@ #include "object/coin.h" #include "object/block.h" #include "object/invisible_block.h" -#include "object/invisible_tile.h" #include "object/platform.h" #include "object/bullet.h" #include "badguy/jumpy.h" @@ -329,9 +328,6 @@ Sector::fix_old_tiles() if(tile->getID() == 112) { add_object(new InvisibleBlock(pos)); solids->change(x, y, 0); - } else if(tile->getID() == 1311) { - add_object(new InvisibleTile(pos)); - solids->change(x, y, 0); } else if(tile->getID() == 295) { add_object(new Spike(pos, Spike::NORTH)); solids->change(x, y, 0);