summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-03-26Add: allow setting the highest mountain for heightmapsPatric Stout
It will add some slack to the map height limit if that was set to auto.
2021-03-26Feature: auto-detect map height limit based on generated mapPatric Stout
This opens up the true power of the TGP terrain generator, as it is no longer constrainted by an arbitrary low map height limit, especially for extreme terrain types. In other words: on a 1kx1k map with "Alpinist" terrain type, the map is now really hilly with default settings. People can still manually limit the map height if they so wish, and after the terrain generation the limit is stored in the savegame as if the user set it. Cheats still allow you to change this value.
2021-03-26Change: rename setting "max_heightlevel" to "map_height_limit"Patric Stout
This better reflects what it is, and hopefully removes a bit of the confusion people are having what this setting actually does. Additionally, update the text on the setting to better inform users what it is doing exactly, so they can make an educated decision on how to change it. Next commit will introduce an "auto" value, which should be the new default. The rename has as added benefit that everyone will start out on the "auto" value.
2021-03-26Change: remove "maximum map height" from the New Game GUIPatric Stout
This setting influence the max heightlevel, and not as the name suggests: the height of the generated map. How ever you slice it, it is a very weird place to add this setting, and it is better off being only in the settings menu. Commits following this commit also make it more useful, so users no longer have to care about it.
2021-03-26Feature: setting to indicate desert coverage for tropic climatePatric Stout
This is an indication value; the game tries to get as close as it can, but due to the complex tropic rules, that is unlikely to be exact. In the end, it picks a height-level to base the desert/tropic line on. This is strictly seen not needed, as we can convert any tile to either. But it is the simplest way to get started with this without redoing all related functions.
2021-03-26Feature: setting to indicate snow coverage for arctic climate (replaces snow ↵Patric Stout
line height) Setting the snow coverage (in % of the map) makes a lot more sense to the human, while still allowing the niche player to set (by finding the correct %) a snow line height they like. This makes for easier defaults, as it decoupled terrain height from amount of snow. Maps can never be 100% snow, as we do not have sprites for coastal tiles. Internally, this calculates the best snow line height to approach this coverage as close as possible.
2021-03-25Change: Do not disallow persistent buffer mapping on AMD GPUs, as it is ↵Milek7
actually faster.
2021-03-25Update: Translations from eintstranslators
chinese (traditional): 25 changes by SiderealArt japanese: 81 changes by taku315
2021-03-25Fix #8875: Filter string in station window breaks flow in user interfaceKoen Bussemaker
2021-03-25Fix: placing random trees in SE crashes the game (#8892)Patric Stout
This used to work by accident: originally the code checked if GenerateWorld was threaded. If not, it would abort the function. This worked for placing trees, because it was also returning false when it was not active. With the recent changes, that check got removed, and this crash started to happen. So now check if we have a modal window, which is a very solid indication we are generating the world.
2021-03-24Update: Translations from eintstranslators
slovak: 6 changes by FuryPapaya
2021-03-23Update: Translations from eintstranslators
arabic (egypt): 22 changes by AviationGamerX
2021-03-22Update: Translations from eintstranslators
slovak: 10 changes by FuryPapaya
2021-03-22Update: Translations from eintstranslators
chinese (simplified): 2 changes by clzls korean: 2 changes by telk5093 slovak: 9 changes by FuryPapaya catalan: 4 changes by J0anJosep polish: 4 changes by pAter-exe
2021-03-21Fix f0f96e31: [OpenGL] Broken window resizing due to invalid buffer pitch on ↵Michael Lutz
texture creation.
2021-03-21Update: Translations from eintstranslators
vietnamese: 118 changes by KhoiCanDev slovak: 13 changes by FuryPapaya
2021-03-21Fix f0f96e31: [OpenGL] warning: comparison of integer expressions of ↵frosch
different signedness. (#8881)
2021-03-20Fix #8871: [OpenGL] Initialize all buffers after resize and clear back ↵Michael Lutz
buffer. (#8877)
2021-03-20Update: Translations from eintstranslators
ukrainian: 1 change by StepanIvasyn
2021-03-20Fix: Recompute road/railtype availability after disabling the enginedP
2021-03-20Fix: OSK layout not scaled for 2x or 4x GUI scale.Peter Nelson
2021-03-19Update: Translations from eintstranslators
spanish (mexican): 8 changes by absay ukrainian: 13 changes by StepanIvasyn dutch: 3 changes by Afoklala lithuanian: 1 change by devbotas
2021-03-18Update: Translations from eintstranslators
ukrainian: 10 changes by StepanIvasyn portuguese: 78 changes by azulcosta
2021-03-17Update: Translations from eintstranslators
swedish: 1 change by kustridaren estonian: 1 change by siimsoni russian: 5 changes by Ln-Wolf, 3 changes by SecretIdetity ukrainian: 7 changes by StepanIvasyn lithuanian: 31 changes by devbotas portuguese: 54 changes by azulcosta
2021-03-16Update: Translations from eintstranslators
estonian: 2 changes by siimsoni
2021-03-16Update: Translations from eintstranslators
swedish: 10 changes by kustridaren norwegian (bokmal): 3 changes by buzzCraft czech: 39 changes by PatrikSamuelTauchim ukrainian: 4 changes by StepanIvasyn
2021-03-15Update: Translations from eintstranslators
english (us): 8 changes by 2TallTyler estonian: 16 changes by siimsoni korean: 5 changes by telk5093 italian: 32 changes by AlphaJack german: 5 changes by Wuzzy2 danish: 15 changes by achton lithuanian: 89 changes by devbotas spanish: 3 changes by MontyMontana french: 8 changes by arikover portuguese (brazilian): 3 changes by Greavez polish: 17 changes by yazalo, 2 changes by pAter-exe
2021-03-14Change: Heading for 1.12 now (#8862)Patric Stout
2021-03-14Fix 217071aa: spanish translation contains an invalid character (#8863)Patric Stout
2021-03-14Update: Translations from eintstranslators
norwegian (bokmal): 5 changes by Anolitt estonian: 13 changes by siimsoni korean: 5 changes by telk5093 italian: 1 change by AlphaJack german: 5 changes by danidoedel ukrainian: 15 changes by StepanIvasyn catalan: 5 changes by J0anJosep dutch: 5 changes by Afoklala lithuanian: 82 changes by devbotas spanish: 255 changes by MontyMontana portuguese (brazilian): 5 changes by Greavez
2021-03-14Doc: Clarify comment that SND_05_TRAIN_THROUGH_TUNNEL is only for steam ↵Tyler Trahan
engines (#8858)
2021-03-14Codechange: we are not booing straps .. we are bootstrappingPatric Stout
2021-03-14Fix: errors during bootstrap could still show up after bootstrapPatric Stout
For example, if you have a config that defines OpenGFX as baseset but for some reason you have no basesets anymore. In that case bootstrap downloads OpenGFX for you, but it will still show the error that "OpenGFX was not found" after the bootstrap. This was an error generated before the bootstrapped kicked in. Simply muting all errors during bootstrap solves this; as we cannot show them anyway, this is fine. Any errors that remain after bootstrap will be generated again anyway.
2021-03-14Fix: if bootstrap failed, it could end with an empty screen instead of errorPatric Stout
There are various of ways bootstrap can fail: - Failing network connection - Incomplete download - No write permissions - Disk full - (others I forgot) They all result in a screen with no windows. To ensure we at least always show something when anything bad happens, if the bootstrap is not successful, show a screen what the next step for the human should be.
2021-03-13Fix #8860: [Win32] Crashlog window wasn't reliably shown for crashes not on ↵Michael Lutz
the main thread.
2021-03-13Update: Translations from eintstranslators
english (us): 7 changes by 2TallTyler estonian: 17 changes by siimsoni hungarian: 100 changes by pnpBrumi ukrainian: 8 changes by StepanIvasyn dutch: 24 changes by Afoklala spanish: 338 changes by MontyMontana french: 29 changes by MalaGaM portuguese (brazilian): 1 change by Greavez
2021-03-13Fix #8851: don't allow infinite "exec" depth in script, but limit to 10 deepPatric Stout
This means if you execute a script from a script from a script, .. for more than 10 times, it bails out now. This should be sufficient for even the most complex scripts.
2021-03-13Fix: calling "exec" from script never returnedPatric Stout
Example: exec other.script echo hello The "echo" was never executed.
2021-03-13Feature: allow setting maximum zoom level at which sprites are drawn (#8604)Matt Kimber
2021-03-13Feature: allow filtering on name in rail station window (#8706)Didac Perez Parera
2021-03-11Fix #8733: Can't buy train engine when the "Engines only" filter is activestormcone
2021-03-11Update: Translations from eintstranslators
swedish: 22 changes by kustridaren ukrainian: 4 changes by StepanIvasyn lithuanian: 7 changes by devbotas spanish: 312 changes by MontyMontana
2021-03-11Change: Recolour graph windows to brown (#8700)Tyler Trahan
2021-03-11Fix #8647: draw tram catenary using 4 bounding boxes.frosch
The back sprite is now supposed to contain west, north and east pillars. The front sprite is supposed to contain the south pillar and the wires.
2021-03-11Fix: front/back sprites of action5 tram catenary were swapped.frosch
2021-03-10Codechange: Add fast path to catenary drawing in MaskWireBitsJonathan G Rennison
MaskWireBits always returns its input unchanged if the input has only 0 or 1 track bits set. Having only 0 or 1 track bits sets (i.e. non junction tiles) is by far the most common case. Examining the state of neighbouring tiles and the subsequent masking logic is relatively expensive and can be omitted in this case.
2021-03-10Update: Translations from eintstranslators
norwegian (bokmal): 26 changes by Anolitt spanish (mexican): 25 changes by absay japanese: 11 changes by Azusa257 korean: 7 changes by telk5093 german: 7 changes by danidoedel russian: 63 changes by Ln-Wolf finnish: 7 changes by hpiirai ukrainian: 5 changes by StepanIvasyn catalan: 7 changes by J0anJosep spanish: 7 changes by MontyMontana portuguese (brazilian): 12 changes by Greavez
2021-03-10Codechange: rework codeflow introduced in 098d5b22 (#8837)Patric Stout
It didn't sit well to me, how I wrote the commit initially. First casting a variable into another, only to write it back into the originally feels wrong. This flow makes a bit more sense to me.
2021-03-10Fix #8833: don't reload NewGRFs when we are shutting downPatric Stout
Otherwise that might cause calls to the video-driver, which are already shut down by now. This causes, depending on the video-driver crashes or weird effects.
2021-03-10Fix: abort world generation on exiting the game as soon as possiblePatric Stout
This prevents the window from "freezing" when you close it during world generation, as it first would continue the action.