FS#3792 - "Random Tree" always creates same type in sub-tropic [PATCH]

Attached to Project: OpenTTD
Opened by Christian Hattemer (Krille) - Sunday, 25 April 2010, 15:30 GMT
Last edited by Remko Bijker (Rubidium) - Sunday, 25 April 2010, 16:35 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 1.0.1-RC2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


When creating a random tree on a sub-tropic (non-rainforrest, non-desert) tile it's always the tree in the bottom left corner of the tree window. Contrary to the invalid reports about trees not beeing random in desert this is a real bug.

With the attached patch it seems to work correctly. The actual bug is that TREE_COUNT_SUB_TROPICAL was wrong. I took the chance to fix the comments also which makes this slightly harder to see.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Sunday, 25 April 2010, 16:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r19724. Thanks for the patch.