diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-07-22 12:10:13 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-07-22 12:10:13 -0600 |
commit | e917223c3d97c3a8bdfadd508054961c897bdcca (patch) | |
tree | 231e6a4fbbb26d9f6c8cadd8033766ed1292addf /src/localplayer.cpp | |
parent | f8b463d9fdd249f06ff48c128d17c83637e010dd (diff) | |
download | mana-e917223c3d97c3a8bdfadd508054961c897bdcca.tar.gz mana-e917223c3d97c3a8bdfadd508054961c897bdcca.tar.bz2 mana-e917223c3d97c3a8bdfadd508054961c897bdcca.tar.xz mana-e917223c3d97c3a8bdfadd508054961c897bdcca.zip |
Fix updating the status window when money changes
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index d20ebcc3..34ab5246 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -911,6 +911,14 @@ void LocalPlayer::setMaxMP(int value) statusWindow->update(StatusWindow::MP); } +void LocalPlayer::setMoney(int value) +{ + mMoney = value; + + if (statusWindow) + statusWindow->update(StatusWindow::MONEY); +} + void LocalPlayer::pickedUp(const ItemInfo &itemInfo, int amount) { if (!amount) |