Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New terraforming algorithm #2455

Closed
DorpsGek opened this issue Dec 15, 2008 · 2 comments
Closed

New terraforming algorithm #2455

DorpsGek opened this issue Dec 15, 2008 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

ic111 opened the ticket and wrote:

For the more heightlevels patch http://www.tt-forums.net/viewtopic.php?f=33&t=40844&p=750798# p750798, I especially rewrote the terraforming code. I was asked to open an entry here for it, so I do this.

The input of the new terraforming algorithm is a map (Tile -> Bounds for that tile). E.g. if you want to terraform some tile x to height h, you insert value (h,h) for key x into the map and start the algorithm.

But the algorithm would also be useful for more complicated setups like terraforming from height 2 to height 6 in one step.

The reason why I rewrote it is that when you can have much more than 16 heightlevels, the old algorithm with the fixed size arrays and many linear searches on those arrays is no longer usable.

A detailed explanation is in the thread linked above.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/2455
@DorpsGek
Copy link
Member Author

DorpsGek commented Jan 3, 2009

yorick wrote:

This patch does more than is described, it seems to contain parts of the new heightlevel patch.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2455#comment5189

@DorpsGek
Copy link
Member Author

andythenorth closed the ticket.

Reason for closing: Won't implement

Mass closure of patch tickets with no commentary for >5 years. Goal is to reduce patch queue as an experiment to see if it aids faster reviewing and rejection/acceptance (it may not). If this offends you and the patch is maintained and compiles with current trunk, discuss with andythenorth in irc. (andythenorth has no ability to review patches but can re-open tickets).


This comment was imported from FlySpray: https://bugs.openttd.org/task/2455

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant