Browse Source

sprite: remove spurious property that caused sprites to be always displayed

at (0,0).
legacy
Sam Hocevar sam 13 years ago
parent
commit
973574f634
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/sprite.cpp

+ 1
- 3
src/sprite.cpp View File

@@ -27,7 +27,6 @@ class SpriteData


private: private:
TileSet *tileset; TileSet *tileset;
vec3 pos;
int id; int id;
}; };


@@ -39,7 +38,6 @@ Sprite::Sprite(TileSet *tileset, int id)
: data(new SpriteData()) : data(new SpriteData())
{ {
data->tileset = tileset; data->tileset = tileset;
data->pos = vec3(0);
data->id = id; data->id = id;
} }


@@ -52,7 +50,7 @@ void Sprite::TickDraw(float deltams)
{ {
Entity::TickDraw(deltams); Entity::TickDraw(deltams);


Scene::GetDefault()->AddTile(data->tileset, data->id, data->pos, 0);
Scene::GetDefault()->AddTile(data->tileset, data->id, position, 0);
} }


Sprite::~Sprite() Sprite::~Sprite()


Loading…
Cancel
Save