FS#4094 - scenario editor "add many"

Attached to Project: OpenTTD
Opened by Moriarty (Moriarty) - Saturday, 28 August 2010, 11:44 GMT
Last edited by Jose Soler (Terkhen) - Saturday, 18 September 2010, 20:50 GMT
Type Bug
Category Core
Status Closed
Assigned To Jose Soler (Terkhen)
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version 1.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


For some reason, the scenario editors place "many random X" (where x is either towns or industry) is tied to to the "new game" settings "no. of towns", "no of industries".

For example, if I click "build" for many industries in the scenario editor, it simply won't place a single industry if "no. of industries" in the newgame dialog is set on "none". If I change this setting, the number created is dependent on what the new setting is at.

I would instead suggest that a fixed (and very low) number be randomly place. If the user wants more, it's easy to click it a few more times, but removing items (especially from a large map) is much more time consuming.
Semi-relatedly tree's plant too many when you click "random trees". If I want sparse tree cover there's no way to do it except manually. Again, it's easy to click "random trees" many times if you want less-sparseness.
This task depends upon

Closed by  Jose Soler (Terkhen)
Saturday, 18 September 2010, 20:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r20711, r20712 and r20829.
Comment by Jose Soler (Terkhen) - Wednesday, 01 September 2010, 19:10 GMT
Towns have been fixed in r20711, and industries in r20712. The tree issue requires more work since I plan to clean up the tree generation code a bit before solving it.