diff options
author | Jan-Fabian Humann <malastare@gmx.net> | 2005-03-01 22:46:37 +0000 |
---|---|---|
committer | Jan-Fabian Humann <malastare@gmx.net> | 2005-03-01 22:46:37 +0000 |
commit | b7cded07732a85204b7e251d51cf4538a58ce374 (patch) | |
tree | 039358abb935e74c4fcc7cd36daf9f09f4a39f11 /src/graphic | |
parent | 28e644b9a72bc41a5403cfcb282c5ca2aa372fa1 (diff) | |
download | mana-b7cded07732a85204b7e251d51cf4538a58ce374.tar.gz mana-b7cded07732a85204b7e251d51cf4538a58ce374.tar.bz2 mana-b7cded07732a85204b7e251d51cf4538a58ce374.tar.xz mana-b7cded07732a85204b7e251d51cf4538a58ce374.zip |
Deleting subx and suby for items, because it's useless
Diffstat (limited to 'src/graphic')
-rw-r--r-- | src/graphic/graphic.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp index 98b1319c..0d8a926b 100644 --- a/src/graphic/graphic.cpp +++ b/src/graphic/graphic.cpp @@ -401,14 +401,8 @@ void Engine::draw() unsigned short y = floorItem->y; int sx = x - camera_x; int sy = y - camera_y; - int absx = sx * 32 - floorItem->subx - offset_x; - int absy = sy * 32 - floorItem->suby - offset_y; - /** - * subx and suby are serverside randomly generated to be - * either 3, 6, 9 or 12. - * this seems to be a finer differentiation for coordinates. - * TODO: Find a better way to implement subx and suby. - */ + int absx = sx * 32 - offset_x; + int absy = sy * 32 - offset_y; if (floorItem->id >= 501 && floorItem->id <= 1202) { itemset->spriteset[floorItem->id - 501]->draw(screen, absx, |