diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-08-02 20:49:37 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-08-03 11:31:18 -0600 |
commit | 12b0ff6204dd64627a3824ba624000424551f054 (patch) | |
tree | c34ecb04adce5ba56ec3c51b64e3e9b29d32c38d /src/net/manaserv/connection.cpp | |
parent | 4c27bfbf6ca84546e5b914b7909df14dd2966081 (diff) | |
download | Mana-12b0ff6204dd64627a3824ba624000424551f054.tar.gz Mana-12b0ff6204dd64627a3824ba624000424551f054.tar.bz2 Mana-12b0ff6204dd64627a3824ba624000424551f054.tar.xz Mana-12b0ff6204dd64627a3824ba624000424551f054.zip |
Fix enet version check
Tested-by: BaseBallBoy
Diffstat (limited to 'src/net/manaserv/connection.cpp')
-rw-r--r-- | src/net/manaserv/connection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/manaserv/connection.cpp b/src/net/manaserv/connection.cpp index 98076c8a..fbd2ed22 100644 --- a/src/net/manaserv/connection.cpp +++ b/src/net/manaserv/connection.cpp @@ -60,7 +60,11 @@ bool Connection::connect(const std::string &address, short port) enetAddress.port = port; // Initiate the connection, allocating channel 0. +#ifdef ENET_VERSION_MAJOR + mConnection = enet_host_connect(mClient, &enetAddress, 1, 0); +#else mConnection = enet_host_connect(mClient, &enetAddress, 1); +#endif if (!mConnection) { |