The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ters on February 02, 2014, 07:16:50 PM

Title: Likely error in bridge reader
Post by: Ters on February 02, 2014, 07:16:50 PM
I notice that bridge reader sets the default axle load when version is less than 5, but the version that introduces axle load in the file format is 7. Copy-paste error? (5 is correct version in tunnel reader.)
Title: Re: Likely error in bridge reader
Post by: Ters on February 02, 2014, 08:54:09 PM
While I'm at it, the tunnel writer forgets to put aside space for has_way, which is written somewhat later than the other attributes. has_way should be at 22 and number_portals at 23, for a node size of 24, which is two bytes more than for version 4 as it should be.
Title: Re: Likely error in bridge reader
Post by: prissi on February 02, 2014, 11:33:13 PM
Thanks, shoudl be fixed in r7058
Title: Re: Likely error in bridge reader
Post by: Ters on February 03, 2014, 05:51:40 AM
Good thing you spotted the error in my error report.