summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-08-10 17:06:10 +0000
committerdominik <dominik@openttd.org>2004-08-10 17:06:10 +0000
commita9413b12a25ca3f2fca654084c3cbea621fd5255 (patch)
tree5421e00c45fc19d328d757ae60340f92865fabef /roadveh_cmd.c
parentee4511a83604e0f9f3fff8ad36bd433f6262106c (diff)
downloadopenttd-a9413b12a25ca3f2fca654084c3cbea621fd5255.tar.xz
(svn r12) Change: removed patch no_train_service. Instead you can set the default service interval for any vehicle type to 'disabled'.
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 3c822a1c1..81ffe78ad 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -1488,6 +1488,9 @@ static void CheckIfRoadVehNeedsService(Vehicle *v)
{
int i;
+ if (_patches.servint_roadveh == 0 && IS_HUMAN_PLAYER(v->owner))
+ return;
+
if (v->date_of_last_service + v->service_interval > _date)
return;