diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-13 21:33:06 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-13 21:35:19 +0200 |
commit | 28bc8c0edb549cdbbe0832c4202630a039f738b1 (patch) | |
tree | 9989f31a5121f82af5aa264ebfe7096c5ea5030f /src/net/ea | |
parent | 627e1bc7eee5b821d29b2161dec4991cae7bf9c0 (diff) | |
download | mana-28bc8c0edb549cdbbe0832c4202630a039f738b1.tar.gz mana-28bc8c0edb549cdbbe0832c4202630a039f738b1.tar.bz2 mana-28bc8c0edb549cdbbe0832c4202630a039f738b1.tar.xz mana-28bc8c0edb549cdbbe0832c4202630a039f738b1.zip |
Some cleanup of the Configuration interface
Mainly avoid all the convertions from integer to float and then to
string and also back from string to float and then to integer.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index b4d05de2..4fdff023 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -180,7 +180,7 @@ void InventoryHandler::handleMessage(MessageIn &msg) if (msg.readInt8() > 0) { - if (config.getValue("showpickupchat", true)) + if (config.getValue("showpickupchat", 1)) localChatTab->chatLog(_("Unable to pick up item"), BY_SERVER); } else @@ -189,14 +189,14 @@ void InventoryHandler::handleMessage(MessageIn &msg) const std::string amountStr = (amount > 1) ? toString(amount) : "a"; - if (config.getValue("showpickupchat", true)) + if (config.getValue("showpickupchat", 1)) { localChatTab->chatLog(strprintf(_("You picked up %s [%s]"), amountStr.c_str(), itemInfo.getName().c_str()), BY_SERVER); } - if (config.getValue("showpickupparticle", false)) + if (config.getValue("showpickupparticle", 0)) { player_node->pickedUp(itemInfo.getName()); } |