From b7cded07732a85204b7e251d51cf4538a58ce374 Mon Sep 17 00:00:00 2001 From: Jan-Fabian Humann Date: Tue, 1 Mar 2005 22:46:37 +0000 Subject: Deleting subx and suby for items, because it's useless --- src/graphic/graphic.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/graphic') 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, -- cgit v1.2.3-70-g09d2