diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-11 14:58:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-11 14:58:14 +0300 |
commit | c14086d6a08fb2ea644eec9fafa0374604c98991 (patch) | |
tree | 29a00277b215a32e019fd06cab4b9ac709ac775c /src/actorspritemanager.cpp | |
parent | 7e19d626711ecf70035b32ee99098fc7fc3419fe (diff) | |
download | plus-c14086d6a08fb2ea644eec9fafa0374604c98991.tar.gz plus-c14086d6a08fb2ea644eec9fafa0374604c98991.tar.bz2 plus-c14086d6a08fb2ea644eec9fafa0374604c98991.tar.xz plus-c14086d6a08fb2ea644eec9fafa0374604c98991.zip |
Add relative pixel based position to item drops (floor items).
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r-- | src/actorspritemanager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp index fa6d49d38..89a592005 100644 --- a/src/actorspritemanager.cpp +++ b/src/actorspritemanager.cpp @@ -240,10 +240,11 @@ Being *ActorSpriteManager::createBeing(int id, ActorSprite::Type type, } FloorItem *ActorSpriteManager::createItem(int id, int itemId, int x, int y, - int amount, unsigned char color) + int amount, unsigned char color, + int subX, int subY) { FloorItem *floorItem = new FloorItem(id, itemId, x, y, - mMap, amount, color); + mMap, amount, color, subX, subY); mActors.insert(floorItem); return floorItem; |