summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-30 17:22:56 +0000
committerrubidium <rubidium@openttd.org>2007-01-30 17:22:56 +0000
commit86b046864a8672dabb7bebc2c1d9fb60e9b53ea5 (patch)
treecc2fcbaaf61a17dfad0f7bc6d11bc5b8312028fb /src/network/core
parentbe19961f1ebbc7e97aee8dcfa757d828a90c470c (diff)
downloadopenttd-86b046864a8672dabb7bebc2c1d9fb60e9b53ea5.tar.xz
(svn r8461) -Feature: check for NewGRF compatability before actually downloading the map from a game server when connecting from the command prompt and internal console.
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/core.h1
-rw-r--r--src/network/core/tcp.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/network/core/core.h b/src/network/core/core.h
index 865213471..729145e7f 100644
--- a/src/network/core/core.h
+++ b/src/network/core/core.h
@@ -19,6 +19,7 @@ void NetworkCoreShutdown(void);
typedef enum {
NETWORK_RECV_STATUS_OKAY, ///< Everything is okay
NETWORK_RECV_STATUS_DESYNC, ///< A desync did occur
+ NETWORK_RECV_STATUS_NEWGRF_MISMATCH, ///< We did not have the required NewGRFs
NETWORK_RECV_STATUS_SAVEGAME, ///< Something went wrong (down)loading the savegame
NETWORK_RECV_STATUS_CONN_LOST, ///< The conection is 'just' lost
NETWORK_RECV_STATUS_MALFORMED_PACKET, ///< We apparently send a malformed packet
diff --git a/src/network/core/tcp.h b/src/network/core/tcp.h
index 74e2880e7..232d6f91a 100644
--- a/src/network/core/tcp.h
+++ b/src/network/core/tcp.h
@@ -52,6 +52,8 @@ enum {
PACKET_SERVER_NEWGAME,
PACKET_SERVER_RCON,
PACKET_CLIENT_RCON,
+ PACKET_SERVER_CHECK_NEWGRFS,
+ PACKET_CLIENT_NEWGRFS_CHECKED,
PACKET_END ///< Must ALWAYS be on the end of this list!! (period)
};