Mercurial > hg > openttd
changeset 13899:72c67db52eb2 draft
(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.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 08 Dec 2009 00:16:31 +0000 |
parents | e05224459a9f |
children | acf1e453f250 |
files | src/roadstop.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/roadstop.cpp +++ b/src/roadstop.cpp @@ -289,7 +289,9 @@ */ 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; }