summaryrefslogtreecommitdiff
path: root/src/gui/windows/itemamountwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-15 18:44:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-15 18:44:29 +0300
commit0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046 (patch)
tree47839023fd9bc4b24db413a462c39fea3d0911de /src/gui/windows/itemamountwindow.cpp
parentca2f3bafe8815e5cba06426f24ef7acad6e699f4 (diff)
downloadmv-0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046.tar.gz
mv-0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046.tar.bz2
mv-0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046.tar.xz
mv-0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046.zip
Fix compilation without hercules support.
Diffstat (limited to 'src/gui/windows/itemamountwindow.cpp')
-rw-r--r--src/gui/windows/itemamountwindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp
index 103fb619b..5bd7da12e 100644
--- a/src/gui/windows/itemamountwindow.cpp
+++ b/src/gui/windows/itemamountwindow.cpp
@@ -356,6 +356,7 @@ void ItemAmountWindow::action(const ActionEvent &event)
}
else
{
+#ifdef EATHENA_SUPPORT
if (mUsage == CraftAdd)
{
finish(mItem,
@@ -364,6 +365,7 @@ void ItemAmountWindow::action(const ActionEvent &event)
mUsage);
}
else
+#endif
{
finish(mItem,
mItemAmountTextField->getValue(),
@@ -472,16 +474,23 @@ void ItemAmountWindow::showWindow(const Usage usage,
if (usage != ShopBuyAdd && usage != ShopSellAdd && maxRange <= 1)
{
+#ifdef EATHENA_SUPPORT
if (usage == CraftAdd)
finish(item, maxRange, tag, usage);
else
+#endif
finish(item, maxRange, 0, usage);
}
else
{
+#ifdef EATHENA_SUPPORT
ItemAmountWindow *const window = CREATEWIDGETR(ItemAmountWindow,
usage, parent, item, maxRange);
if (usage == CraftAdd)
window->mPrice = tag;
+#else
+ CREATEWIDGET(ItemAmountWindow,
+ usage, parent, item, maxRange);
+#endif
}
}