From badfb31888a6bd62e0a019b3f3dec517df4121ec Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 18 Sep 2010 22:11:27 +0000 Subject: trade updates --- src/core/inventory.cc | 2 +- src/core/inventory.h | 2 +- src/core/item.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/inventory.cc b/src/core/inventory.cc index 6afa76f..c659178 100644 --- a/src/core/inventory.cc +++ b/src/core/inventory.cc @@ -29,7 +29,7 @@ void Inventory::set_timestamp(const unsigned long timestamp) inventory_timestamp = timestamp; } -void Inventory::mark() +void Inventory::set_dirty() { inventory_timestamp = core::game()->timestamp(); } diff --git a/src/core/inventory.h b/src/core/inventory.h index c715116..0a412b0 100644 --- a/src/core/inventory.h +++ b/src/core/inventory.h @@ -74,7 +74,7 @@ public: /** * @brief set the timestamp to the current game time */ - void mark(); + void set_dirty(); private: Items inventory_items; diff --git a/src/core/item.cc b/src/core/item.cc index 3528c1a..ca51775 100644 --- a/src/core/item.cc +++ b/src/core/item.cc @@ -16,7 +16,7 @@ Item::Item(const Info *info) { item_info = info; item_amount = 0; - item_price = 0; + item_price = info->price(); } Item::~Item() -- cgit v1.2.3