diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-25 13:01:26 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-25 13:01:26 +0000 |
commit | aeef4449ce3c1bdc531fb90699fef68bd48ca644 (patch) | |
tree | 969c2ec24f382a6a75e01b1b3315dd9fe8f26d46 /src/game/base | |
parent | 158706fac974527436a3167cfa94a7ea82070d41 (diff) |
trading bugfixes: corrects client side screen update issues
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/cargo.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/base/cargo.cc b/src/game/base/cargo.cc index 3014a1e..626a1b3 100644 --- a/src/game/base/cargo.cc +++ b/src/game/base/cargo.cc @@ -164,6 +164,7 @@ void Cargo::sell(core::EntityControlable *seller, core::Entity *buyer, const int seller_item->dec_amount(negotiated_amount); seller->owner()->set_credits(seller->owner()->credits() + negotiated_price * negotiated_amount); + seller->owner()->set_dirty(); seller->inventory()->set_dirty(); if (buyer_item->amount() >= 0) { @@ -283,7 +284,7 @@ void Cargo::buy(core::EntityControlable *buyer, core::Entity *seller, const int } buyer_item->inc_amount(negotiated_amount); buyer->owner()->set_credits(buyer->owner()->credits() - negotiated_price * negotiated_amount); - + buyer->owner()->set_dirty(); buyer->inventory()->set_dirty(); // send a cargo purchased message |