From 269c1a58a0fb935d148240fe702bb302e6800688 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 23 Jan 2007 14:47:38 +0000 Subject: (svn r8372) -Fix (8361): NUM_LANDSCAPE comes (via some detour) from openttd.h, which does not exist in the masterserver/updater. --- src/network/core/config.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/network/core/config.h') diff --git a/src/network/core/config.h b/src/network/core/config.h index 0b80800f0..71f3983a9 100644 --- a/src/network/core/config.h +++ b/src/network/core/config.h @@ -42,6 +42,15 @@ enum { NETWORK_MAX_GRF_COUNT = 55, NETWORK_NUM_LANGUAGES = 4, ///< Number of known languages (to the network protocol) + 1 for 'any'. + /** + * The number of landscapes in OpenTTD. + * This number must be equal to NUM_LANDSCAPE, but as this number is used + * within the network code and that the network code is shared with the + * masterserver/updater, it has to be declared in here too. In network.cpp + * there is a compile assertion to check that this NUM_LANDSCAPE is equal + * to NETWORK_NUM_LANDSCAPES. + */ + NETWORK_NUM_LANDSCAPES = 4, }; #endif /* ENABLE_NETWORK */ -- cgit v1.2.3-54-g00ecf