diff options
author | Stijn Buys <ingar@osirion.org> | 2012-10-15 17:19:14 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-10-15 17:19:14 +0000 |
commit | f7213c6e0ddf5f02df6d7e29d538adbdb38b1217 (patch) | |
tree | 3277a0e71420ab4aa1fcf2976806bbad0d2ca3e3 /src/core/item.cc | |
parent | 9554f5be113b7f5d697a2eb8e782f70d6911be19 (diff) |
Added support for item::Unique flag and Item::dirty().
Diffstat (limited to 'src/core/item.cc')
-rw-r--r-- | src/core/item.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/item.cc b/src/core/item.cc index 3768afa..f6e0382 100644 --- a/src/core/item.cc +++ b/src/core/item.cc @@ -24,6 +24,7 @@ Item::Item(const Info *info) item_info = info; item_amount = 0; item_flags = 0; + item_price = info->price(); set_timestamp(game() ? game()->timestamp() : 1); } @@ -34,6 +35,7 @@ Item::Item(const Item &other) item_amount = other.amount(); item_flags = other.flags(); item_price = other.price(); + item_dirty = other.dirty(); set_timestamp(game() ? game()->timestamp() : 1); } |