forked from mirror/OpenTTD
(svn r12795) -Fix [FS#1938]: vehicles could break down during loading and keep loading. The intention of the break down code is not to break down when having zero speed, therefor break downs now do not happen when loading.
This commit is contained in:
@@ -594,7 +594,7 @@ static void ShipController(Vehicle *v)
|
||||
HandleBrokenShip(v);
|
||||
return;
|
||||
}
|
||||
v->breakdown_ctr--;
|
||||
if (!v->current_order.IsType(OT_LOADING)) v->breakdown_ctr--;
|
||||
}
|
||||
|
||||
if (v->vehstatus & VS_STOPPED) return;
|
||||
|
Reference in New Issue
Block a user