Ignore:
Timestamp:
Oct 24, 2011, 9:18:43 AM (8 years ago)
Author:
sam
Message:

sprite: remove spurious property that caused sprites to be always displayed
at (0,0).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sprite.cpp

    r866 r1031  
    2828private:
    2929    TileSet *tileset;
    30     vec3 pos;
    3130    int id;
    3231};
     
    4039{
    4140    data->tileset = tileset;
    42     data->pos = vec3(0);
    4341    data->id = id;
    4442}
     
    5351    Entity::TickDraw(deltams);
    5452
    55     Scene::GetDefault()->AddTile(data->tileset, data->id, data->pos, 0);
     53    Scene::GetDefault()->AddTile(data->tileset, data->id, position, 0);
    5654}
    5755
Note: See TracChangeset for help on using the changeset viewer.