diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-08-24 20:02:36 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-08-24 20:02:36 +0000 |
commit | 276ce34d9646305c58ca7ce51cc9f1d53b60a24f (patch) | |
tree | 57eec04d3e64109361151056d8dc70c25f508d8e /src/game.cpp | |
parent | 4683edefdede2f482cc43c4fb516dba9ce50318c (diff) | |
download | mana-276ce34d9646305c58ca7ce51cc9f1d53b60a24f.tar.gz mana-276ce34d9646305c58ca7ce51cc9f1d53b60a24f.tar.bz2 mana-276ce34d9646305c58ca7ce51cc9f1d53b60a24f.tar.xz mana-276ce34d9646305c58ca7ce51cc9f1d53b60a24f.zip |
Simply don't show equipped items in sell dialog since it's annoying. Code cleanups and improvements to the login sequence.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 3dd254ef..bbfbee9e 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1607,7 +1607,7 @@ void do_parse() sellDialog->setVisible(true); for (int k = 0; k < n_items; k++) { Item *item = inventory->getItem(RFIFOW(4 + 10 * k)); - if (item) { + if (item && !(item->isEquipped())) { sellDialog->addItem(item, RFIFOL(4 + 10 * k + 2)); } } |