diff options
author | rubidium <rubidium@openttd.org> | 2007-01-05 21:33:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-01-05 21:33:58 +0000 |
commit | 8ce23a5881b535cb3e9d85c03e62c65c096862d5 (patch) | |
tree | c88869a689f38cf27044cebedc0c96a42465047a /src/network/core/udp.c | |
parent | 674dcfa5d2b6ecdc6af005d2675faece49d6d0a3 (diff) | |
download | openttd-8ce23a5881b535cb3e9d85c03e62c65c096862d5.tar.xz |
(svn r7888) -Change: add documentation about the 'on-the-wire' structure of the network game information request and reply packets.
Diffstat (limited to 'src/network/core/udp.c')
-rw-r--r-- | src/network/core/udp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/core/udp.c b/src/network/core/udp.c index 3e23ca962..5e32ad8e4 100644 --- a/src/network/core/udp.c +++ b/src/network/core/udp.c @@ -175,6 +175,8 @@ void NetworkSend_NetworkGameInfo(Packet *p, const NetworkGameInfo *info) * The parts must be read in the same order as they are sent! */ + /* Update the documentation in udp.h on changes + * to the NetworkGameInfo wire-protocol! */ /* NETWORK_GAME_INFO_VERSION = 4 */ { @@ -236,6 +238,9 @@ void NetworkRecv_NetworkGameInfo(NetworkClientState *cs, Packet *p, NetworkGameI * The parts must be read in the same order as they are sent! */ + /* Update the documentation in udp.h on changes + * to the NetworkGameInfo wire-protocol! */ + switch (info->game_info_version) { case 4: { GRFConfig *c, **dst = &info->grfconfig; |