diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-23 16:45:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-23 16:45:46 +0300 |
commit | d20744c0ff83572dc209389df900826b7d088546 (patch) | |
tree | b6a91790f6c52d016e57cfdba687251c1f01409f /src/gui/windows/statuswindow.cpp | |
parent | a22d7bce703101ba3ae15cb5b8545381dfe863c4 (diff) | |
download | mv-d20744c0ff83572dc209389df900826b7d088546.tar.gz mv-d20744c0ff83572dc209389df900826b7d088546.tar.bz2 mv-d20744c0ff83572dc209389df900826b7d088546.tar.xz mv-d20744c0ff83572dc209389df900826b7d088546.zip |
Add support for additional slots in net code.
Now projectile slot depend on server.
Diffstat (limited to 'src/gui/windows/statuswindow.cpp')
-rw-r--r-- | src/gui/windows/statuswindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp index 9d979f27f..8803654c8 100644 --- a/src/gui/windows/statuswindow.cpp +++ b/src/gui/windows/statuswindow.cpp @@ -50,8 +50,9 @@ #include "gui/widgets/vertcontainer.h" #include "gui/widgets/windowcontainer.h" -#include "net/playerhandler.h" #include "net/gamehandler.h" +#include "net/inventoryhandler.h" +#include "net/playerhandler.h" #include "utils/delete2.h" #include "utils/gettext.h" @@ -585,7 +586,7 @@ void StatusWindow::updateArrowsBar(ProgressBar *const bar) return; const Item *const item = equipmentWindow->getEquipment( - Equipment::EQUIP_PROJECTILE_SLOT); + inventoryHandler->getProjectileSlot()); if (item && item->getQuantity() > 0) bar->setText(toString(item->getQuantity())); |