Various tree fixes

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
User avatar
Csaboka
Tycoon
Tycoon
Posts: 1202
Joined: 25 Nov 2002 16:30
Location: Tiszavasvári, Hungary
Contact:

Various tree fixes

Post by Csaboka »

Hi!

Today, I've been working on reproducing my "more consistent trees" patch for OpenTTD. The attached patch does the following:
- Trees can now be planted to bare land without making it grassy. The grass will grow below the tree at the usual pace.
- When you plant a tree in the desert, the tile doesn't become grassy just to revert to desert a second later.
- When a tree died in the desert, it left a snowy tile behind (until the periodic processing replaced it with a desert). The bug could be noticed in the vegetation map only; the graphics were the same.

I've also tried allowing cacti to spread in the desert, but it came out rather weird - some very big cactus patches developed in the desert, and that isn't too realistic. I've commented out that change, but it would be nice to allow cacti to spread, with different rules than ordinary trees.

The code changes are mainly straightforward: I'm copying the clear tile density for grass and rough land instead of having it constant zero, and adding the desert option to switch statements that forgot about it. The only gotcha is that tiles on rough land now have a constant density of 3 instead of a constant 0.
Attachments
ottd-tree-fixes.patch
Tree fixes patch (against r11243)
(6.37 KiB) Downloaded 120 times
Reality is that which, when you stop believing in it, doesn't go away.—Philip K. Dick
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: Various tree fixes

Post by athanasios »

Thanks for your "environmental concerns"! :mrgreen:
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
TrueBrain
OpenTTD Developer
OpenTTD Developer
Posts: 1370
Joined: 31 May 2004 09:21

Re: Various tree fixes

Post by TrueBrain »

Added as r11244. Thanks a lot :) Finally someone fixed this annoying thingy :)
The only thing necessary for the triumph of evil is for good men to do nothing.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 21 guests