The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999+ on April 25, 2014, 04:35:11 AM

Title: way_height_clearance for old games
Post by: z9999+ on April 25, 2014, 04:35:11 AM

if(  file->is_loading()  &&  file->get_version() < 112007  ) {
grundwasser *= env_t::pak_height_conversion_factor;
for(  int i = 0;  i < 8;  i++  ) {
climate_borders[i] *= env_t::pak_height_conversion_factor;
}
winter_snowline *= env_t::pak_height_conversion_factor;
way_height_clearance = 2;
}


Is this correct ?
If I load an old pak64 savegame, I cannot build a bridge on roads, because of 2. And I can't build a straight tunnel, I don't know why.

So strangely enough, I can't build throughout tunnel, when pak_height_conversion_factor=1 and way_height_clearance=2.
I sometimes success to build tunnel with ctrl key, but I cannot build throughout tunnel. It's strange.
Maybe some code is broken.
Title: Re: way_height_clearance for old games
Post by: prissi on April 27, 2014, 08:07:14 PM
THank you, the clerance upon loading old games should probably best reflect the height of the conversion, or bridges would be messed up. Incorporated in r7173