mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 04:29:09 +00:00
(svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user