diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-09 13:26:15 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-09 13:26:15 +0000 |
commit | 2b96754673a964ba73a7ad5e508a8dfb31a0c701 (patch) | |
tree | ccbac52281216762b9143a0756b6a957443b581d /settings_gui.c | |
parent | 5f6de3e47c1418388efeabef2a312f689a288175 (diff) | |
download | openttd-2b96754673a964ba73a7ad5e508a8dfb31a0c701.tar.xz |
(svn r2285) - Codechange: Fix up some of the missing things from server-checking; namely bridge-type, bridge-length, dragged end-tile (bridge/station), station_spread
- Fix: [ 1197256 ] max station spread patch < 7 does not work. Station spread was not taking into account when not using drag&drop. Fix this up, and add a callback to the settings window to immediately reflect the changes.
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/settings_gui.c b/settings_gui.c index dbfd9b91e..5ef7d8770 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -587,6 +587,12 @@ static int32 InValidateDetailsWindow(int32 p1) return 0; } +static int32 InvalidateStationBuildWindow(int32 p1) +{ + InvalidateWindow(WC_BUILD_STATION, 0); + return 0; +} + /* Check service intervals of vehicles, p1 is value of % or day based servicing */ static int32 CheckInterval(int32 p1) { @@ -704,7 +710,7 @@ static const PatchEntry _patches_stations[] = { {PE_BOOL, 0, STR_CONFIG_PATCHES_SELECTGOODS, "select_goods", &_patches.selectgoods, 0, 0, 0, NULL}, {PE_BOOL, 0, STR_CONFIG_PATCHES_NEW_NONSTOP, "new_nonstop", &_patches.new_nonstop, 0, 0, 0, NULL}, {PE_BOOL, 0, STR_CONFIG_PATCHES_NONUNIFORM_STATIONS, "nonuniform_stations", &_patches.nonuniform_stations, 0, 0, 0, NULL}, - {PE_UINT8, 0, STR_CONFIG_PATCHES_STATION_SPREAD, "station_spread", &_patches.station_spread, 4, 64, 1, NULL}, + {PE_UINT8, 0, STR_CONFIG_PATCHES_STATION_SPREAD, "station_spread", &_patches.station_spread, 4, 64, 1, &InvalidateStationBuildWindow}, {PE_BOOL, 0, STR_CONFIG_PATCHES_SERVICEATHELIPAD, "service_at_helipad", &_patches.serviceathelipad, 0, 0, 0, NULL}, {PE_BOOL, 0, STR_CONFIG_PATCHES_CATCHMENT, "modified_catchment", &_patches.modified_catchment, 0, 0, 0, NULL}, |