summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-16 15:57:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-16 15:57:21 +0300
commit117c99ff5c8358624df6d176860ac64c86b6fa5f (patch)
treef102edba52eb47263b0fd575f1d4fddf80ee71e8 /src/net
parent26af06b24fdc711202f5fa933bcbd2af2f6080a3 (diff)
downloadmv-117c99ff5c8358624df6d176860ac64c86b6fa5f.tar.gz
mv-117c99ff5c8358624df6d176860ac64c86b6fa5f.tar.bz2
mv-117c99ff5c8358624df6d176860ac64c86b6fa5f.tar.xz
mv-117c99ff5c8358624df6d176860ac64c86b6fa5f.zip
Fix compilation with some flags.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/serverinfo.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index 6153be942..3ef8243fc 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -151,15 +151,18 @@ class ServerInfo final
#ifdef TMWA_SUPPORT
if (compareStrI(serverType, "tmwathena") == 0)
return ServerType::TMWATHENA;
-#endif
+#endif // TMWA_SUPPORT
+#if defined(TMWA_SUPPORT) && defined(EATHENA_SUPPORT)
+ else
+#endif // defined(TMWA_SUPPORT) && defined(EATHENA_SUPPORT)
#ifdef EATHENA_SUPPORT
- else if (compareStrI(serverType, "eathena") == 0)
+ if (compareStrI(serverType, "eathena") == 0)
return ServerType::EATHENA;
else if (compareStrI(serverType, "hercules") == 0)
return ServerType::EATHENA;
else if (compareStrI(serverType, "evol2") == 0)
return ServerType::EVOL2;
-#endif
+#endif // EATHENA_SUPPORT
return ServerType::UNKNOWN;
}
};