Commit 0cc6b3bde2d9d041cf8c616941a11273dae2aff5
- Diff rendering mode:
- inline
- side by side
|   | |||
| 60 | 60 | enetAddress.port = port; | |
| 61 | 61 | ||
| 62 | 62 | // Initiate the connection, allocating channel 0. | |
| 63 | #if ENET_VERSION_MAJOR != 1 | ||
| 64 | #error Unsuported enet version! | ||
| 65 | #elif ENET_VERSION_MINOR < 3 | ||
| 63 | 66 | mConnection = enet_host_connect(mClient, &enetAddress, 1); | |
| 67 | #else | ||
| 68 | mConnection = enet_host_connect(mClient, &enetAddress, 1, 0); | ||
| 69 | #endif | ||
| 64 | 70 | ||
| 65 | 71 | if (!mConnection) | |
| 66 | 72 | { |
src/net/manaserv/network.cpp
(6 / 0)
|   | |||
| 53 | 53 | logger->error("Failed to initialize ENet."); | |
| 54 | 54 | } | |
| 55 | 55 | ||
| 56 | #if ENET_VERSION_MAJOR != 1 | ||
| 57 | #error Unsuported enet version! | ||
| 58 | #elif ENET_VERSION_MINOR < 3 | ||
| 56 | 59 | client = enet_host_create(NULL, 3, 0, 0); | |
| 60 | #else | ||
| 61 | client = enet_host_create(NULL, 3, 0, 0, 0); | ||
| 62 | #endif | ||
| 57 | 63 | ||
| 58 | 64 | if (!client) | |
| 59 | 65 | { |

