summaryrefslogtreecommitdiff
path: root/src/network/network_internal.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_internal.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_internal.h')
-rw-r--r--src/network/network_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_internal.h b/src/network/network_internal.h
index aa30ac4aa..3ce35b79c 100644
--- a/src/network/network_internal.h
+++ b/src/network/network_internal.h
@@ -168,7 +168,7 @@ bool NetworkFindName(char new_name[NETWORK_CLIENT_NAME_LENGTH]);
#define DEF_CLIENT_RECEIVE_COMMAND(type) NetworkRecvStatus NetworkPacketReceive_ ## type ## _command(Packet *p)
#define DEF_CLIENT_SEND_COMMAND(type) void NetworkPacketSend_ ## type ## _command()
#define DEF_CLIENT_SEND_COMMAND_PARAM(type) void NetworkPacketSend_ ## type ## _command
-#define DEF_SERVER_RECEIVE_COMMAND(type) void NetworkPacketReceive_ ## type ## _command(NetworkClientSocket *cs, Packet *p)
+#define DEF_SERVER_RECEIVE_COMMAND(type) NetworkRecvStatus NetworkPacketReceive_ ## type ## _command(NetworkClientSocket *cs, Packet *p)
#define DEF_SERVER_SEND_COMMAND(type) void NetworkPacketSend_ ## type ## _command(NetworkClientSocket *cs)
#define DEF_SERVER_SEND_COMMAND_PARAM(type) void NetworkPacketSend_ ## type ## _command