mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r18429) -Fix [FS#3360]: when road vehicles are, because of the 'jam protection' running through eachother more vehicles could be in a road stop than there could be under normal circumstances. As such an assert when the road stop's limits are reached isn't good.
This commit is contained in:
parent
7da9158f6b
commit
83d74846f7
@ -289,7 +289,9 @@ void RoadStop::Entry::Leave(const RoadVehicle *rv)
|
|||||||
*/
|
*/
|
||||||
void RoadStop::Entry::Enter(const RoadVehicle *rv)
|
void RoadStop::Entry::Enter(const RoadVehicle *rv)
|
||||||
{
|
{
|
||||||
assert(this->occupied < this->length);
|
/* we cannot assert on this->occupied < this->length because of the
|
||||||
|
* remote possibility that RVs are running through eachother when
|
||||||
|
* trying to prevention an infinite jam. */
|
||||||
this->occupied += rv->rcache.cached_veh_length;
|
this->occupied += rv->rcache.cached_veh_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user