The International Simutrans Forum

 

Author Topic: [120.4] World Height Error  (Read 503 times)

0 Members and 1 Guest are viewing this topic.

Offline HyperSim

  • *
  • Posts: 117
  • Languages: EN, JP
[120.4] World Height Error
« on: September 18, 2018, 04:58:54 PM »
Hello,
I opened my old savedata (saved with 120.1.3) and found that I can't do anything because the cursor has gone!
I reserched and found that world_maximum_height was set as same as world_minimum_height!

I think that this line in dataobj.settings.cc(l.1436) is wrong.
Code: [Select]
world_maximum_height = contents.get_int("world_maximum_height",world_maximum_height);
world_maximum_height = contents.get_int("world_minimum_height",world_maximum_height);

And, config/simuconf.tab is also wrong. (but it is just a typo and will not cause critical error)
Code: [Select]
# minimum/maximum allowed height level for the map (too heigh might cause display errors)
#world_maximum_height = -12
#world_maximum_height = 32
« Last Edit: September 19, 2018, 04:25:11 AM by HyperSim »

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5535
  • Languages: EN, NO
Re: [120.4] World Height Error
« Reply #1 on: September 18, 2018, 05:55:59 PM »
I don't quite see how this can cause any errors unless world_minimum_height is set in simuconf.tab, nor why it should affect visibility of the cursor in an existing map.

Offline HyperSim

  • *
  • Posts: 117
  • Languages: EN, JP
Re: [120.4] World Height Error
« Reply #2 on: September 19, 2018, 04:24:18 AM »
I don't quite see how this can cause any errors unless world_minimum_height is set in simuconf.tab, nor why it should affect visibility of the cursor in an existing map.

The error about simconf.tab is just a typo.
And it doesn’t affect game unless player edit it.

Offline THLeaderH jp

  • Coder/patcher
  • Devotee
  • *
  • Posts: 332
  • Languages: JP,EN
Re: [120.4] World Height Error
« Reply #3 on: September 19, 2018, 04:46:49 AM »
Sorry for my typo.
This is a patch for fix.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9531
  • Languages: De,EN,JP
Re: [120.4] World Height Error
« Reply #4 on: September 19, 2018, 01:32:00 PM »
I added also a sanity check too in r8592.