Cleanup: remove some references to the old master-server

This commit is contained in:
Rubidium
2021-07-21 21:41:21 +02:00
committed by rubidium42
parent 9cc706847c
commit ba29edb0b3
4 changed files with 2 additions and 14 deletions

View File

@@ -94,14 +94,4 @@ static const uint NETWORK_GRF_NAME_LENGTH = 80; ///< Maxim
*/
static const uint NETWORK_MAX_GRF_COUNT = 255;
/**
* 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.
*/
static const uint NETWORK_NUM_LANDSCAPES = 4;
#endif /* NETWORK_CORE_CONFIG_H */

View File

@@ -352,7 +352,7 @@ void DeserializeNetworkGameInfo(Packet *p, NetworkGameInfo *info, const GameInfo
info->landscape = p->Recv_uint8 ();
info->dedicated = p->Recv_bool ();
if (info->landscape >= NETWORK_NUM_LANDSCAPES) info->landscape = 0;
if (info->landscape >= NUM_LANDSCAPE) info->landscape = 0;
}
}