summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-12-08 03:10:50 +0000
committerbelugas <belugas@openttd.org>2007-12-08 03:10:50 +0000
commitf27103846110329bdd74c3229596ff3e229be1b0 (patch)
tree4035aa66fcd85e5b6485927f6941345900ada009 /src/network
parent902b20263ce0b5d5ee9f1e2c54707b012586bbd3 (diff)
downloadopenttd-f27103846110329bdd74c3229596ff3e229be1b0.tar.xz
(svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function
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 de1ace134..eb9c04e4b 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -755,7 +755,7 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e)
case NSSW_SPECTATORS_BTND: case NSSW_SPECTATORS_BTNU: // Click on up/down button for number of spectators
/* Don't allow too fast scrolling */
if ((w->flags4 & WF_TIMEOUT_MASK) <= 2 << WF_TIMEOUT_SHL) {
- HandleButtonClick(w, e->we.click.widget);
+ w->HandleButtonClick(e->we.click.widget);
SetWindowDirty(w);
switch (e->we.click.widget) {
default: NOT_REACHED();