diff options
author | tron <tron@openttd.org> | 2006-01-05 21:35:54 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-01-05 21:35:54 +0000 |
commit | 2053685fb5776afbd2fe25e2d03a560fe437d346 (patch) | |
tree | 36adc599aa918a785fc38a75ba97172dcddffef5 /aircraft_gui.c | |
parent | 9b87635c1f446541dc32bf9275fdbdcddbaf2af9 (diff) | |
download | openttd-2053685fb5776afbd2fe25e2d03a560fe437d346.tar.xz |
(svn r3367) Unify the 4 distinct CMD_CHANGE_{AIRCRAFT,ROADVEH,SHIP,TRAIN}_SERVICE_INT commands into one CMD_CHANGE_SERVICE_INT command.
As side effect this is a
-Fix: The default AI tried to change the service intervals of vehicles via the CMD_CHANGE_TRAIN_SERVICE_INT command - regardless of the type of the vehicle - which of course failed for non-trains
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r-- | aircraft_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c index 99dc2cedc..4bb83c1c4 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -415,7 +415,7 @@ do_change_service_int: mod = GetServiceIntervalClamped(mod + v->service_interval); if (mod == v->service_interval) return; - DoCommandP(v->tile, v->index, mod, NULL, CMD_CHANGE_AIRCRAFT_SERVICE_INT | CMD_MSG(STR_018A_CAN_T_CHANGE_SERVICING)); + DoCommandP(v->tile, v->index, mod, NULL, CMD_CHANGE_SERVICE_INT | CMD_MSG(STR_018A_CAN_T_CHANGE_SERVICING)); break; } } break; |