The International Simutrans Forum

 

Author Topic: Random map does not use full range  (Read 1184 times)

0 Members and 1 Guest are viewing this topic.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18552
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Random map does not use full range
« on: September 29, 2013, 12:30:46 AM »
In line 500 of welt.cc, we have:

Code: [Select]
knr = simrand(9999);

However, the maximum random seed for generating new maps is now 2147483647. I suggest, therefore, substituting it with:

Code: [Select]
knr = simrand(2147483647);

so that players using the "random map" feature can gain access to the full range of randomly generated maps.