From c14086d6a08fb2ea644eec9fafa0374604c98991 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 Feb 2012 14:58:14 +0300 Subject: Add relative pixel based position to item drops (floor items). --- src/flooritem.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/flooritem.h') diff --git a/src/flooritem.h b/src/flooritem.h index 95427c252..1f3126078 100644 --- a/src/flooritem.h +++ b/src/flooritem.h @@ -42,14 +42,12 @@ class FloorItem : public ActorSprite * @param y the y position in tiles * @param map the map this item is on * @param amount the item amount + * @param color the item color + * @param subX the x pixel relative position + * @param subY the y pixel relative position */ - FloorItem(int id, - int itemId, - int x, - int y, - Map *map, - int amount, - unsigned char color); + FloorItem(int id, int itemId, int x, int y, Map *map, int amount, + unsigned char color, int subX, int subY); Type getType() const { return FLOOR_ITEM; } -- cgit v1.2.3-70-g09d2