diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-16 15:57:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-16 15:57:21 +0300 |
commit | 117c99ff5c8358624df6d176860ac64c86b6fa5f (patch) | |
tree | f102edba52eb47263b0fd575f1d4fddf80ee71e8 /src/net/serverinfo.h | |
parent | 26af06b24fdc711202f5fa933bcbd2af2f6080a3 (diff) | |
download | manaverse-117c99ff5c8358624df6d176860ac64c86b6fa5f.tar.gz manaverse-117c99ff5c8358624df6d176860ac64c86b6fa5f.tar.bz2 manaverse-117c99ff5c8358624df6d176860ac64c86b6fa5f.tar.xz manaverse-117c99ff5c8358624df6d176860ac64c86b6fa5f.zip |
Fix compilation with some flags.
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r-- | src/net/serverinfo.h | 9 |
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; } }; |