diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-08-02 20:49:37 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-08-02 21:02:43 -0600 |
commit | 71ea8233334803a079ad24396ead02280a80d8d4 (patch) | |
tree | bb41b4c2417ed572dda9cdba93dc7b2e0cedc1c6 /src/net/manaserv/network.cpp | |
parent | 6caf60e9b698a117a8518301f3de65b24e7d876b (diff) | |
download | mana-71ea8233334803a079ad24396ead02280a80d8d4.tar.gz mana-71ea8233334803a079ad24396ead02280a80d8d4.tar.bz2 mana-71ea8233334803a079ad24396ead02280a80d8d4.tar.xz mana-71ea8233334803a079ad24396ead02280a80d8d4.zip |
Fix enet version check
Tested-by: BaseBallBoy
Diffstat (limited to 'src/net/manaserv/network.cpp')
-rw-r--r-- | src/net/manaserv/network.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/net/manaserv/network.cpp b/src/net/manaserv/network.cpp index 7c9bb864..4b9751d7 100644 --- a/src/net/manaserv/network.cpp +++ b/src/net/manaserv/network.cpp @@ -53,12 +53,10 @@ void initialize() logger->error("Failed to initialize ENet."); } -#if ENET_VERSION_MAJOR != 1 -#error Unsuported enet version! -#elif ENET_VERSION_MINOR < 3 - client = enet_host_create(NULL, 3, 0, 0); -#else +#ifdef ENET_VERSION_MAJOR client = enet_host_create(NULL, 3, 0, 0, 0); +#else + client = enet_host_create(NULL, 3, 0, 0); #endif if (!client) |