diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-16 16:18:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-16 16:18:29 +0300 |
commit | c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa (patch) | |
tree | 356f87aac5b794fa4e0903a15ec83f55f52f7b00 /src/actions | |
parent | e811e48760c7f9a22615f40a0b025d34b9f12eb0 (diff) | |
download | manaverse-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.tar.gz manaverse-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.tar.bz2 manaverse-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.tar.xz manaverse-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.zip |
Move itemamountwindowusage enum into separate file.
Also convert it to strong typed enum.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index a51dab201..1f7df9c9d 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -462,7 +462,7 @@ impHandler(dropItemId) if (item && !PlayerInfo::isItemProtected(item->getId())) { - ItemAmountWindow::showWindow(ItemAmountWindow::ItemDrop, + ItemAmountWindow::showWindow(ItemAmountWindowUsage::ItemDrop, inventoryWindow, item); } return true; @@ -473,7 +473,7 @@ impHandler(dropItemInv) Item *const item = getItemByInvIndex(event, InventoryType::Inventory); if (item && !PlayerInfo::isItemProtected(item->getId())) { - ItemAmountWindow::showWindow(ItemAmountWindow::ItemDrop, + ItemAmountWindow::showWindow(ItemAmountWindowUsage::ItemDrop, inventoryWindow, item); } return true; @@ -1590,7 +1590,7 @@ impHandler(invToStorage) } else { - ItemAmountWindow::showWindow(ItemAmountWindow::StoreAdd, + ItemAmountWindow::showWindow(ItemAmountWindowUsage::StoreAdd, inventoryWindow, item); } return true; @@ -1611,7 +1611,7 @@ impHandler(tradeAdd) } else { - ItemAmountWindow::showWindow(ItemAmountWindow::TradeAdd, + ItemAmountWindow::showWindow(ItemAmountWindowUsage::TradeAdd, tradeWindow, item); } return true; @@ -1633,7 +1633,7 @@ impHandler(storageToInv) } else { - ItemAmountWindow::showWindow(ItemAmountWindow::StoreRemove, + ItemAmountWindow::showWindow(ItemAmountWindowUsage::StoreRemove, storageWindow, item); } return true; |