summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-16 13:57:49 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-16 13:57:49 +0300
commit29a39909e3f53305c4e29fdcba863f94603b8763 (patch)
tree54681b323307085e5f1fce7f8a5b341c50b63f49 /src/actormanager.cpp
parent41cc92f73e39cec5dfea6b1164176610cccc7df4 (diff)
downloadmanaverse-29a39909e3f53305c4e29fdcba863f94603b8763.tar.gz
manaverse-29a39909e3f53305c4e29fdcba863f94603b8763.tar.bz2
manaverse-29a39909e3f53305c4e29fdcba863f94603b8763.tar.xz
manaverse-29a39909e3f53305c4e29fdcba863f94603b8763.zip
Add missing fields into flooritem.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 96d234327..ec0e0ed1b 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -299,12 +299,19 @@ Being *ActorManager::createBeing(const BeingId id,
FloorItem *ActorManager::createItem(const BeingId id,
const int itemId,
const int x, const int y,
+ const int itemType,
const int amount,
const ItemColor color,
+ const Identified identified,
const int subX, const int subY)
{
- FloorItem *const floorItem = new FloorItem(id, itemId,
- x, y, amount, color);
+ FloorItem *const floorItem = new FloorItem(id,
+ itemId,
+ x, y,
+ itemType,
+ amount,
+ color,
+ identified);
floorItem->postInit(mMap, subX, subY);
if (!checkForPickup(floorItem))