diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-15 11:29:40 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-15 11:29:40 +0000 |
commit | 79e803232438d41cce80467a97e9efde8e6c0c70 (patch) | |
tree | f8fd399a13913ccbc6942f6385f9852426f9ebf1 /src/net | |
parent | 0a106989bd16c48525f01cb8515809e74f37a8d8 (diff) | |
download | mana-79e803232438d41cce80467a97e9efde8e6c0c70.tar.gz mana-79e803232438d41cce80467a97e9efde8e6c0c70.tar.bz2 mana-79e803232438d41cce80467a97e9efde8e6c0c70.tar.xz mana-79e803232438d41cce80467a97e9efde8e6c0c70.zip |
Add configurable units system
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/playerhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp index cfdfbe63..e142dd91 100644 --- a/src/net/playerhandler.cpp +++ b/src/net/playerhandler.cpp @@ -27,6 +27,7 @@ #include "../localplayer.h" #include "../log.h" #include "../npc.h" +#include "../units.h" #include "../gui/buy.h" #include "../gui/chat.h" @@ -281,8 +282,8 @@ void PlayerHandler::handleMessage(MessageIn *msg) player_node->mGp = msg->readInt32(); if (player_node->mGp > curGp) chatWindow->chatLog(_("You picked up ") + - toString(player_node->mGp - curGp) + " GP", - BY_SERVER); + Units::formatCurrency(player_node->mGp + - curGp), BY_SERVER); } break; case 0x0016: |