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 | af70b49bf737b03d83e239f5af1fdbc83c3674dc (patch) | |
tree | 36adc599aa918a785fc38a75ba97172dcddffef5 /roadveh_gui.c | |
parent | 5ac1a89f924345f6c75a81423a41f95656070cc0 (diff) | |
download | openttd-af70b49bf737b03d83e239f5af1fdbc83c3674dc.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 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index db045e920..3040e05d7 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -169,7 +169,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_ROADVEH_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; |