summaryrefslogtreecommitdiff
path: root/src/network/network_server.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-22 20:44:14 +0000
committerrubidium <rubidium@openttd.org>2009-09-22 20:44:14 +0000
commit7d24e84a81402e2469f798f0e5aace523b12f858 (patch)
treee11738a6406ec72f39fe1322de483237e9734fa1 /src/network/network_server.h
parente261d8d9a0904ebc215c9551c6d8c0c9f34be4df (diff)
downloadopenttd-7d24e84a81402e2469f798f0e5aace523b12f858.tar.xz
(svn r17617) -Codechange: make the server side packet handling be more like the client side's handling, i.e. return the connection status
-Fix: do not do invalid reads when a packet handling function closed a connection
Diffstat (limited to 'src/network/network_server.h')
-rw-r--r--src/network/network_server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.h b/src/network/network_server.h
index df7fe1669..2e52a07b5 100644
--- a/src/network/network_server.h
+++ b/src/network/network_server.h
@@ -22,7 +22,7 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_NEWGAME);
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_RCON)(NetworkClientSocket *cs, uint16 colour, const char *command);
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_MOVE)(NetworkClientSocket *cs, uint16 client_id, CompanyID company_id);
-bool NetworkServer_ReadPackets(NetworkClientSocket *cs);
+void NetworkServer_ReadPackets(NetworkClientSocket *cs);
void NetworkServer_Tick(bool send_frame);
#else /* ENABLE_NETWORK */