From 117c99ff5c8358624df6d176860ac64c86b6fa5f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 16 Mar 2016 15:57:21 +0300 Subject: Fix compilation with some flags. --- src/net/serverinfo.h | 9 ++++++--- 1 file 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; } }; -- cgit v1.2.3-60-g2f50