The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: jamespetts on May 19, 2010, 12:13:36 am

Title: [Bug] Excess space between city cars (R3302)
Post by: jamespetts on May 19, 2010, 12:13:36 am
See the attached screenshot: city cars treat themselves as being far longer than they really are: this makes it difficult to manage congestion effectively. This does not apply to players' vehicles.

Tested with Standard R 3302 in Windows, 32-bit.

(http://simutrans-germany.com/files/upload/traffic_spacing_bug.jpg)
Title: Re: [Bug] Excess space between city cars (R3302)
Post by: Dwachs on May 19, 2010, 05:21:21 am
Cars take at least one tile, iirc. This should happen with different player convois too. Afaik,  nothing has changed with the citycar code.
Title: Re: [Bug] Excess space between city cars (R3302)
Post by: jamespetts on May 19, 2010, 10:20:06 am
Dwachs,

the player vehicles get much closer to each other than the cars do; and cars didn't used to stay this far apart.
Title: Re: [Bug] Excess space between city cars (R3302)
Post by: gauthier on May 19, 2010, 12:35:41 pm
I don't agree with James, my buses aren't more than one behind each other on each tile. Maybe it's just a feeling because your citycars here are very small.
Title: Re: [Bug] Excess space between city cars (R3302)
Post by: jamespetts on May 19, 2010, 12:48:49 pm
With player vehicles, the space that they leave is dependant on their actual length: with city cars, they all leave a very large amount of space whether they need to do so or not.
Title: Re: [Bug] Excess space between city cars (R3302)
Post by: VS on May 19, 2010, 12:59:17 pm
James - you mean, as if the cars had all length of 16?
Title: Re: [Bug] Excess space between city cars (R3302)
Post by: Dwachs on May 19, 2010, 02:15:49 pm
@James: your claim is not true. Just test it with the short road vehicles in pak128.Britain.

I would consider this as intended (or at least as implemented) behavior. This thread is then an extension request rather than a bug report ;)
Title: Re: [Bug] Excess space between city cars (R3302)
Post by: prissi on May 19, 2010, 02:28:13 pm
James, since you have the sourcecode your should at least look at the relevant part before posting. The routine in question are called ist_weg_frei() and will block further driving, if on the next tile is any vehicle regardless of its length. (Actually, since the check is somewhat expensive, it is only done when entering a new tiel, thus it is simply not possible at the moment to stop in the middle of a tile). This is true for both, citycars and convoys.