summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-16 16:18:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-16 16:18:29 +0300
commitc94a736ddcf5299b6eacb9cfd5c09c6266dd78aa (patch)
tree356f87aac5b794fa4e0903a15ec83f55f52f7b00 /src/actions/actions.cpp
parente811e48760c7f9a22615f40a0b025d34b9f12eb0 (diff)
downloadplus-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.tar.gz
plus-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.tar.bz2
plus-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.tar.xz
plus-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.zip
Move itemamountwindowusage enum into separate file.
Also convert it to strong typed enum.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp10
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;