News:

Want to praise Simutrans?
Your feedback is important for us ;D.

way_height_clearance for old games

Started by z9999+, April 25, 2014, 04:35:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999+


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.

prissi

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