diff options
author | rubidium <rubidium@openttd.org> | 2010-10-15 18:42:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-10-15 18:42:52 +0000 |
commit | 7ba07d9573b7224846c183db25af43253bf5f7b9 (patch) | |
tree | 75acd4a6ab38474b6e5c758ef43de27d1f3a6117 /src/network/core/tcp_game.cpp | |
parent | 8f9ae44a6713efa41de390846b6804a0d3d3bc92 (diff) | |
download | openttd-7ba07d9573b7224846c183db25af43253bf5f7b9.tar.xz |
(svn r20929) -Codechange: make NetworkCloseClient a class method
Diffstat (limited to 'src/network/core/tcp_game.cpp')
-rw-r--r-- | src/network/core/tcp_game.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/core/tcp_game.cpp b/src/network/core/tcp_game.cpp index b0db78eb7..037cb42fc 100644 --- a/src/network/core/tcp_game.cpp +++ b/src/network/core/tcp_game.cpp @@ -47,7 +47,6 @@ NetworkGameSocketHandler::NetworkGameSocketHandler(SOCKET s) * For clients: close connection and drop back to main-menu * For servers: close connection and that is it * @return the new status - * TODO: needs to be splitted when using client and server socket packets */ NetworkRecvStatus NetworkGameSocketHandler::CloseConnection(bool error) { @@ -61,7 +60,7 @@ NetworkRecvStatus NetworkGameSocketHandler::CloseConnection(bool error) return NETWORK_RECV_STATUS_CONN_LOST; } - return NetworkCloseClient(this, error ? NETWORK_RECV_STATUS_SERVER_ERROR : NETWORK_RECV_STATUS_CONN_LOST); + return this->CloseConnection(error ? NETWORK_RECV_STATUS_SERVER_ERROR : NETWORK_RECV_STATUS_CONN_LOST); } |