diff options
author | rubidium <rubidium@openttd.org> | 2007-12-02 14:29:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-02 14:29:48 +0000 |
commit | 527b72749d5160eceb6e5999c0f329701b14ee47 (patch) | |
tree | e58f8a4999ff6c34bc01aae8c8c413ceee96650c /src/town_gui.cpp | |
parent | 50fced3c66b6af28856e3776ca0e7a0799cb9827 (diff) | |
download | openttd-527b72749d5160eceb6e5999c0f329701b14ee47.tar.xz |
(svn r11555) -Codechange: use the new members introduced in r11551.
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index d846f4ee9..452210e55 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -142,7 +142,7 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e) if (WP(w,def_d).data_1 != -1 && !HasBit(buttons, WP(w,def_d).data_1)) WP(w,def_d).data_1 = -1; - SetWindowWidgetDisabledState(w, 6, WP(w, def_d).data_1 == -1); + w->SetWidgetDisabledState(6, WP(w, def_d).data_1 == -1); { int y; @@ -272,7 +272,7 @@ static void TownViewWndProc(Window *w, WindowEvent *e) switch (e->event) { case WE_PAINT: /* disable renaming town in network games if you are not the server */ - SetWindowWidgetDisabledState(w, 8, _networking && !_network_server); + w->SetWidgetDisabledState(8, _networking && !_network_server); SetDParam(0, t->index); DrawWindowWidgets(w); |