summaryrefslogtreecommitdiff
path: root/src/network/core/udp.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-23 14:47:38 +0000
committerrubidium <rubidium@openttd.org>2007-01-23 14:47:38 +0000
commit269c1a58a0fb935d148240fe702bb302e6800688 (patch)
treea9eebe1e09f39f897049ec74be2d89b4b128a7c4 /src/network/core/udp.cpp
parentc856c266113db710b0675702a64ab463f3133340 (diff)
downloadopenttd-269c1a58a0fb935d148240fe702bb302e6800688.tar.xz
(svn r8372) -Fix (8361): NUM_LANDSCAPE comes (via some detour) from openttd.h, which does not exist in the masterserver/updater.
Diffstat (limited to 'src/network/core/udp.cpp')
-rw-r--r--src/network/core/udp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp
index 38309d326..f20f98ba9 100644
--- a/src/network/core/udp.cpp
+++ b/src/network/core/udp.cpp
@@ -300,8 +300,8 @@ void NetworkUDPSocketHandler::Recv_NetworkGameInfo(Packet *p, NetworkGameInfo *i
info->map_set = NetworkRecv_uint8 (this, p);
info->dedicated = (NetworkRecv_uint8(this, p) != 0);
- if (info->server_lang >= NETWORK_NUM_LANGUAGES) info->server_lang = 0;
- if (info->map_set >= NUM_LANDSCAPE) info->map_set = 0;
+ if (info->server_lang >= NETWORK_NUM_LANGUAGES) info->server_lang = 0;
+ if (info->map_set >= NETWORK_NUM_LANDSCAPES) info->map_set = 0;
}
}