Page 1 of 1

Patch: Snow line height in create scenario window

Posted: 16 Jan 2009 12:36
by Terkhen
This simple patch adds an option in the create scenario window to change the snow line height. Without this patch, if you want a flat scenario with a certain snow line height, you have to enter into random land generation to change it, then come back to the original window.

I await your comments. Don't be too harsh, this is my first patch :D

Flyspray task: http://bugs.openttd.org/task/2545

Changes in v0.2: Removed a few comments that have been added to trunk. Everything else keeps the same.

Re: Patch: Snow line height in create scenario window

Posted: 16 Jan 2009 20:46
by atalantino
Dont be too harsh? A patch is always appreciated. And if something is wrong its human behaviour to correct and help eachover.

Re: Patch: Snow line height in create scenario window

Posted: 16 Jan 2009 23:17
by Terkhen
Patch updated because some comments and clarifications are now in trunk. Thank you for your time, Belugas! :D

Re: Patch: Snow line height in create scenario window

Posted: 24 May 2010 09:41
by viking42
Hi,

How and where to install?

Re: Patch: Snow line height in create scenario window

Posted: 24 May 2010 11:15
by Alberth
viking42 wrote:How and where to install?
Patches here are always source patches.
Installation by downloading the source, installing a C++ compiler, compiling to an executable, running the unmodified executable (to check whether compiling went ok), apply patch to the source, compile again, run & play.

There is a sticky thread about how to apply a patch.
At the wiki there are explanations for the other steps afaik.

Re: Patch: Snow line height in create scenario window

Posted: 24 May 2010 12:11
by Terkhen
Also note that the patch is really old and it will not apply to current versions of OpenTTD source.

I think this still would be useful, but not in the way I coded it. As Belugas mentions in the FS task, it would be nice to unify the code of all generation windows. Then, adding parameters from the new game generation window to this one would be really easy. I won't know for sure if this is feasible until I check the code, which I'll do once I find some free time.