diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-03-22 23:10:27 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-03-22 23:10:27 +0000 |
commit | 346bb6d670d630d65f8c35125831c75d031aac7f (patch) | |
tree | c79877ea0d6b46ae748bf4a6d6d3969dc483f0a4 /src/net/buysellhandler.cpp | |
parent | 6f9a2e74958d794fb049253833b98982e915df45 (diff) | |
download | mana-client-346bb6d670d630d65f8c35125831c75d031aac7f.tar.gz mana-client-346bb6d670d630d65f8c35125831c75d031aac7f.tar.bz2 mana-client-346bb6d670d630d65f8c35125831c75d031aac7f.tar.xz mana-client-346bb6d670d630d65f8c35125831c75d031aac7f.zip |
Redesigned the localplayer class to use getters and setters instead of direct access to the member variables. Implemented communication of attributes between server and client.
Diffstat (limited to 'src/net/buysellhandler.cpp')
-rw-r--r-- | src/net/buysellhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/buysellhandler.cpp b/src/net/buysellhandler.cpp index 473a706c..45dfb9ad 100644 --- a/src/net/buysellhandler.cpp +++ b/src/net/buysellhandler.cpp @@ -72,7 +72,7 @@ void BuySellHandler::handleMessage(MessageIn &msg) msg.readShort(); // length n_items = (msg.getLength() - 4) / 11; buyDialog->reset(); - buyDialog->setMoney(player_node->mMoney); + buyDialog->setMoney(player_node->getMoney()); buyDialog->setVisible(true); for (int k = 0; k < n_items; k++) @@ -89,7 +89,7 @@ void BuySellHandler::handleMessage(MessageIn &msg) msg.readShort(); // length n_items = (msg.getLength() - 4) / 10; if (n_items > 0) { - sellDialog->setMoney(player_node->mMoney); + sellDialog->setMoney(player_node->getMoney()); sellDialog->reset(); sellDialog->setVisible(true); |