From 12b0ff6204dd64627a3824ba624000424551f054 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 2 Aug 2010 20:49:37 -0600 Subject: Fix enet version check Tested-by: BaseBallBoy --- src/net/manaserv/connection.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net/manaserv/connection.cpp') 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) { -- cgit v1.2.3-70-g09d2