summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-31 10:55:00 +0000
committertruebrain <truebrain@openttd.org>2011-12-31 10:55:00 +0000
commitf27b7e2a785747441971112ffb5415c655b11da0 (patch)
treefde2faef32c7fab49e4fb19aad076371931f4bb8 /src/network
parent440b63da33f848f383ecdb304c6246689d0f1a67 (diff)
downloadopenttd-f27b7e2a785747441971112ffb5415c655b11da0.tar.xz
(svn r23691) -Fix: signed/unsigned issues, causing asserts for some languages in relation to the serverlist
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 82d74bb2f..545d5a52d 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -146,7 +146,7 @@ public:
NWidgetBase *child_wid = this->head->next;
/* The first and last widget are always visible, determine which other should be visible */
for (uint i = 1; i < lengthof(this->visible) - 1; i++) {
- if (given_width - child_wid->smallest_x > MINIMUM_NAME_WIDTH_BEFORE_NEW_HEADER && this->visible[i - 1]) {
+ if (given_width > MINIMUM_NAME_WIDTH_BEFORE_NEW_HEADER + child_wid->smallest_x && this->visible[i - 1]) {
this->visible[i] = true;
given_width -= child_wid->smallest_x;
} else {