summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-05-08 09:00:47 +0000
committerfrosch <frosch@openttd.org>2009-05-08 09:00:47 +0000
commit8fc723800fc2f05eb91399024306b6e98f4f5d02 (patch)
tree3c231e8500d45f6fc85f97d3502253059e720dc0 /src
parenta00b22b1cd101eebc8dd1f8b54713dd3a3ca00eb (diff)
downloadopenttd-8fc723800fc2f05eb91399024306b6e98f4f5d02.tar.xz
(svn r16254) -Fix [FS#2886]: Magic constant removed.
Diffstat (limited to 'src')
-rw-r--r--src/network/network_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 394c80d36..fb9ea8f09 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -546,8 +546,8 @@ public:
ShowQueryString(
STR_JUST_RAW_STRING,
STR_NETWORK_ENTER_IP,
- 31, // maximum number of characters
- 250, // characters up to this width pixels, whichever is satisfied first
+ NETWORK_HOSTNAME_LENGTH, // maximum number of characters including '\0'
+ 0, // no limit in pixels
this, CS_ALPHANUMERAL, QSF_ACCEPT_UNCHANGED);
break;