Pārlūkot izejas kodu

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

at (0,0).
legacy
Sam Hocevar sam pirms 13 gadiem
vecāks
revīzija
973574f634
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. +1
    -3
      src/sprite.cpp

+ 1
- 3
src/sprite.cpp Parādīt failu

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

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

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

@@ -52,7 +50,7 @@ void Sprite::TickDraw(float 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()


Notiek ielāde…
Atcelt
Saglabāt