summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-17 20:16:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-17 20:16:14 +0300
commit995bc5ba7d1b5e38cf294d6fa27db7ee89886a28 (patch)
treee4d553b28cc68de9a629d0174503146624c63f27 /src/resources/db
parent21fa38275fc8ec00d32dd1b2f7fe211a7925a596 (diff)
downloadmv-995bc5ba7d1b5e38cf294d6fa27db7ee89886a28.tar.gz
mv-995bc5ba7d1b5e38cf294d6fa27db7ee89886a28.tar.bz2
mv-995bc5ba7d1b5e38cf294d6fa27db7ee89886a28.tar.xz
mv-995bc5ba7d1b5e38cf294d6fa27db7ee89886a28.zip
Use magic command properties only if compiled for tmwa.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/commandsdb.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/db/commandsdb.cpp b/src/resources/db/commandsdb.cpp
index 69c918f86..992d194df 100644
--- a/src/resources/db/commandsdb.cpp
+++ b/src/resources/db/commandsdb.cpp
@@ -103,6 +103,7 @@ void CommandsDB::loadXmlFile(const std::string &fileName)
commandNode, "target", ""));
const std::string icon = XML::getProperty(
commandNode, "icon", "");
+#ifdef TMWA_SUPPORT
const int skill1 = XML::getIntProperty(
commandNode, "skill1", 0, 0, 1000000);
const int level1 = XML::getIntProperty(
@@ -113,8 +114,10 @@ void CommandsDB::loadXmlFile(const std::string &fileName)
commandNode, "level2", 0, 0, 1000);
const int mana = XML::getIntProperty(
commandNode, "mana", 0, 0, 100000);
+#endif
TextCommand *cmd = nullptr;
+#ifdef TMWA_SUPPORT
if (skill1)
{
cmd = new TextCommand(id,
@@ -129,6 +132,7 @@ void CommandsDB::loadXmlFile(const std::string &fileName)
mana);
}
else
+#endif
{
cmd = new TextCommand(id,
name,