summaryrefslogtreecommitdiff
path: root/ship_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 /ship_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 'ship_cmd.c')
-rw-r--r--ship_cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index a4993998b..eaf50fde1 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -85,6 +85,9 @@ static void CheckIfShipNeedsService(Vehicle *v)
{
int i;
+ if (_patches.servint_ships == 0 && IS_HUMAN_PLAYER(v->owner))
+ return;
+
if (v->date_of_last_service + v->service_interval > _date)
return;