gooball
c017a3662a
Change: converting town-owned road types now require town rating ( #8457 )
2021-01-05 11:45:07 +01:00
Charles Pigott
e21302f481
Fix #8437 : Crash when using certain heliports with rotated airports
2021-01-05 11:42:51 +01:00
Charles Pigott
619d714923
Fix #8437 : Planes landing at non-rectangular airports could be drawn at the wrong height
...
Only the rotated intercontinental airport, don't get excited
2021-01-05 11:42:51 +01:00
Matt Kimber
5728f9c7d0
Codechange: consider vehicle co-ordinates when identifying viewport candidate as using only the hash generates false positives
2021-01-05 11:42:25 +01:00
Matt Kimber
9b28b15e67
Codechange: create MutableSpriteCache to remove the need to cast Vehicle to a mutable type in render methods
2021-01-05 11:42:25 +01:00
Matt Kimber
eeb88e87d8
Codechange: improve performance for complex vehicle chains by resolving sprites less often
2021-01-05 11:42:25 +01:00
Michael Lutz
979b4af6ca
Revert 4ce53cb8: [OSX] Delayed fullscreen switch is not needed anymore.
...
The fix for #8067 solves the real issue, making this workaround unneeded.
2021-01-03 22:24:04 +01:00
Michael Lutz
6e8be3b03e
Fix #8067 : [OSX] Calculate title bar height instead of assuming a fixed value.
2021-01-03 22:24:04 +01:00
Andy
0f91cb0479
Fix: GetCurveSpeedLimit needs railtype from current tile ( #8466 )
2021-01-03 22:19:06 +01:00
Michael Lutz
4ce53cb851
Fix: [OSX] Quitting in fullscreen mode would loose the original window size.
...
This replicates the behaviour on e.g. Windows, which saves the original window size.
2021-01-03 21:20:28 +01:00
Michael Lutz
c860a247d3
Change: [OSX] Hide Dock and menu during fullscreen mode.
2021-01-03 21:20:28 +01:00
translators
784a4ef9b5
Update: Translations from eints
...
spanish (mexican): 14 changes by absay
finnish: 32 changes by hpiirai
polish: 2 changes by yazalo
2021-01-03 18:25:04 +00:00
frosch
b08d8c7edb
Cleanup 9f42358: Make also reliability_start randomised independent of introduction date.
2021-01-03 14:56:43 +00:00
frosch
d24a9a9df5
Cleanup 8139b14: Move a comment back to the line it belongs to, and add a comment for new code.
2021-01-03 14:56:43 +00:00
Michael Lutz
6ad5489d01
Codechange: [OSX] Silence some annoying warnings.
2021-01-03 13:25:32 +01:00
Michael Lutz
7bdaabf5f1
Cleanup: [OSX] Remove cargo cult back-buffer alpha setting on show/hide and instead simply initialise the buffer on allocation.
2021-01-03 13:25:32 +01:00
Michael Lutz
a61a741683
Change: [OSX] Compiling the Cocoa/Quartz video driver cannot be disabled anymore.
2021-01-03 13:25:32 +01:00
Michael Lutz
9ccef816f9
Codechange: [OSX] Re-arrange the OSX video driver code by combining all drawing code and moving the window/event handling to a different file.
...
This is just a code move/rename, not a functionality change.
2021-01-03 13:25:32 +01:00
Patric Stout
ab7da117e0
Add: always set PERSONAL_DIR "/content_download" in search path ( #8481 )
...
This means that if you start OpenTTD with "-c" to indicate another
location to store files, it can still read the content you already
downloaded from your PERSONAL_DIR. This folder is, however,
read-only.
This is useful for situations where you downloaded OpenGFX via
the content-service, but want to run the regression or want to
run with a clean configuration. With this change, you no longer
need to download OpenGFX again.
2021-01-03 11:10:56 +01:00
Michael Lutz
8c24b2b6ce
Fix: [OSX] Fonts loaded directly from a file have to be registered with CoreText for proper text layout.
2021-01-03 01:00:28 +01:00
Patric Stout
4bd3d18f34
Add: use our search-paths to find fonts based on relative filenames too
...
This allows "small_font = ./myfont.ttf", with "myfont.ttf" located
in "~/.openttd".
2021-01-02 23:44:37 +01:00
2TallTyler
fe51051b7c
Change: Default settings improved for new players
2021-01-02 19:50:22 +00:00
Charles Pigott
3dfee979a7
Codechange: Drop libxdg-basedir dependency in favour of finding the directories ourselves
2021-01-02 19:46:08 +00:00
Patric Stout
c288eba813
Fix: prevent clients making emergency saves twice if server disconnects ( #8477 )
...
This was clearly overlooked during the initial implementation.
2021-01-02 20:34:55 +01:00
translators
46e13e7f0b
Update: Translations from eints
...
finnish: 3 changes by hpiirai
catalan: 29 changes by J0anJosep
2021-01-02 18:24:09 +00:00
Patric Stout
8596b43b2b
Codechange: move some DEBUG-levels and remove some others in saveload routine ( #8474 )
...
When running with -dsl=2 it is very easy to miss important information
as there was a lot of noise in between too. This tunes the debug
levels a bit to be less noisy while keeping the important bits.
2021-01-01 14:41:14 +01:00
glx22
7222bc5814
Cleanup 2db88953e7: Remove VL_FIRST_SORT as it's useless
2021-01-01 01:04:27 +01:00
translators
a7fee48b7f
Update: Translations from eints
...
finnish: 4 changes by hpiirai
french: 1 change by glx22
2020-12-31 18:27:03 +00:00
SamuXarick
9f423586ad
Change #8325 : Make engine reliability independent of introduction date ( #8470 )
2020-12-31 17:06:48 +01:00
translators
18fccba410
Update: Translations from eints
...
spanish (mexican): 42 changes by absay
russian: 4 changes by Ln-Wolf
finnish: 2 changes by hpiirai
french: 35 changes by glx22
polish: 25 changes by yazalo
2020-12-30 18:26:18 +00:00
Jonathan G Rennison
15fd63b1b8
Fix: Assert fail when using restart command after opening save/load GUI
2020-12-30 00:57:09 +01:00
translators
80a7d0365b
Update: Translations from eints
...
korean: 4 changes by telk5093
german: 84 changes by UnsuspiciousGooball
finnish: 4 changes by hpiirai
slovak: 7 changes by FuryPapaya
2020-12-29 18:26:06 +00:00
gooball
0125892f04
Fix #8297 : Infrastructure counters for road tunnels, bridges, depots … ( #8454 )
...
The previous fix 887e9481ff0e70df6bf93ce15a3899a03f124c50 only worked for roads and failed to consider a multiplier used for the infrastructure totals for tunnels/bridges.
Also, depots and bus/truck stops are counted as 2 road pieces on creation but were only counted as 1 road piece on conversion because the function DiagDirToRoadBits() was used, which only ever returns single-piece road segments.
Co-authored-by: A. S <admin-git@sotai.tk>
2020-12-28 22:54:28 +01:00
translators
b30c3f6498
Update: Translations from eints
...
korean: 6 changes by telk5093
finnish: 6 changes by hpiirai
slovak: 47 changes by FuryPapaya
2020-12-28 18:21:37 +00:00
glx22
f7e48cac87
Fix #8453 : [Script] Don't truncate loan variation to 32bit
2020-12-28 16:51:15 +01:00
dP
94057e9b18
Change: Add some style to GameScript question windows depending on the type
2020-12-28 11:27:42 +00:00
J0anJosep
edbb5f4f73
Doc: Remove some SmallVector references from documentation.
2020-12-27 18:40:18 +00:00
Charles Pigott
e0161cf8da
Fix b408fe7: Don't try to construct a std::string from nullptr
2020-12-27 18:30:53 +00:00
translators
1bb0e6ed8c
Update: Translations from eints
...
russian: 19 changes by lexuslatvia
finnish: 1 change by hpiirai
latvian: 19 changes by lexuslatvia
2020-12-27 18:18:16 +00:00
Michael Lutz
4f8e7b2a2b
Fix 65f65ad2: Missing path separator that fell over a cliff.
2020-12-27 15:07:06 +01:00
SamuXarick
dc5b8020cc
Fix #6452 : Reset only editable and visible settings from GUI ( #7890 )
...
Also enables the Reset button while in-game for AI configs.
2020-12-27 15:05:47 +01:00
Michael Lutz
b408fe77f7
Codechange: Use std::string in file scanners.
2020-12-27 13:19:25 +01:00
Michael Lutz
358056ec42
Codechange: Keep filenames of loaded Fio files in std::strings.
2020-12-27 13:19:25 +01:00
Michael Lutz
024a3f6259
Codechange: Use automatic memory management for language pack reading.
2020-12-27 13:19:25 +01:00
Michael Lutz
5cbb2da794
Codechange: Even more std::string usage in file IO.
2020-12-27 13:19:25 +01:00
Michael Lutz
65f65ad2ad
Codechange: Convert some more FIO functions to take std::string.
2020-12-27 13:19:25 +01:00
Michael Lutz
f3326d34e7
Codechange: Use std::string in FIO search path handling.
2020-12-27 13:19:25 +01:00
Michael Lutz
0c6e8a8123
Codechange: Store file search paths as std::string.
2020-12-27 13:19:25 +01:00
Michael Lutz
dd138fc460
Codechange: Stringify config file paths.
2020-12-27 13:19:25 +01:00
Charles Pigott
860c270c73
Codechange: Replace assert_compile macro with static_assert
2020-12-27 10:55:42 +00:00
cirdan
395a5d9991
Cleanup: Remove unused ChunkType flag CH_AUTO_LENGTH
...
CH_AUTO_LENGTH is no longer used anywhere, so remove all code
that depends on it.
2020-12-27 10:30:55 +00:00
cirdan
46ff7d918b
Cleanup: Remove save-only autolength flag from economy chunk handlers
...
CH_AUTO_LENGTH is only used when saving chunks; it makes no sense
to set it for chunks without a save handler.
2020-12-27 10:30:55 +00:00
Jonathan G Rennison
0e017f6233
Codechange: Enable FINAL, (un)likely, __attribute__ when building with clang
2020-12-27 10:30:55 +00:00
Jonathan G Rennison
fc52d3df50
Codechange: Use likely/__builtin_expect for assertion macros
2020-12-27 10:30:55 +00:00
Jonathan G Rennison
5cf28be742
Codechange: Add support for verbose asserts
2020-12-27 10:30:55 +00:00
Jonathan G Rennison
eb74179c6d
Codechange: Unconditionally use static_assert
...
We're well past having to support non-C++11 compliant compilers now.
2020-12-27 10:30:55 +00:00
Charles Pigott
52f3abba6e
Cleanup: Remove unnecessary assert_tcompile macro
2020-12-27 10:30:55 +00:00
glx22
d8605ad18d
Codechange: Replace FOR_VEHICLE_ORDERS with range-based for loops
2020-12-27 10:28:46 +00:00
Michael Lutz
1478fa93b3
Add: [NewGRF] Patch flag to test if inflation is on or off.
2020-12-27 10:28:39 +00:00
Michael Lutz
5a5d613ee3
Change: Disable changing the inflation setting in network games.
2020-12-27 10:28:39 +00:00
Niels Martin Hansen
2d9fa81bd0
Feature: Plant clumps of trees in editor by dragging on the landscape
2020-12-27 01:03:27 +01:00
Niels Martin Hansen
e0ee2d530a
Change: Switch tree GUI to use dynamically generated buttons
...
This makes it look a bit better in climates with fewer tree types.
2020-12-27 01:03:27 +01:00
Niels Martin Hansen
4d0f19406b
Fix: Wrong tree sprite in tree toolbar
2020-12-27 01:03:27 +01:00
translators
2c8c6d423c
Update: Translations from eints
...
korean: 18 changes by telk5093
2020-12-26 18:16:26 +00:00
Patric Stout
8fa2a67f6b
Fix f66baa44: for-loop is no longer increasing "i"
...
During conversion it was overlooked that the for-loop used to do
this. Oops.
2020-12-26 13:32:25 +00:00
Patric Stout
6aef1164a4
Fix: [Emscripten] using TIC/TOC on this platform is silly
...
Stop throwing a warning about this, as it is not likely we will
ever implement it.
2020-12-25 20:56:25 +01:00
Michael Lutz
79cb9efa7f
Change: Always apply inflation from 1920 to 2090, no matter the game start year. ( #7589 )
2020-12-25 20:36:14 +01:00
Patric Stout
e6e91a345c
Fix f66baa44: index was off by one ( #8433 )
...
i++ in the 3rd part of a for() is post, not pre. Oops.
2020-12-25 19:57:13 +01:00
Patric Stout
f66baa444f
Codechange: use C++11 constructs for for-each loops ( #8432 )
2020-12-25 19:38:18 +01:00
translators
9add62796c
Update: Translations from eints
...
finnish: 10 changes by hpiirai
2020-12-25 18:16:29 +00:00
Patric Stout
4319d31036
Fix #6468 : don't store version of AIs-started-via-console in name
...
You can do: "startai myai.3", which starts version 3 of "myai".
This is very useful for testing save/load code between different
versions of your AI.
However, when using this syntax, the AI got saved as "myai.3" as
name of the AI, instead of "myai". This caused several problems,
like indicating to the user the AI could not be found, but still
load the AI. But in all cases, the AI never got the chance to
load the saved data, making the whole reason this exists pointless.
By splitting the name and version already in the console command,
the code becomes simpler and AIs started this way now follow the
normal flow after initialization.
2020-12-25 17:03:44 +01:00
Patric Stout
29e3331055
Codechange: move block a bit lower to increase readability
...
It was rather confusing that "library_name" was calculated, and
then not used to do the FindLibrary() call. Flipping those two
blocks around makes it a bit more sane to read.
2020-12-25 17:03:44 +01:00
Patric Stout
8c0e4ab07f
Doc: for over 10 years now, we do not load the exact AI version first ( #8431 )
...
See commit fae34ee7
for details. The documentation simply never
got updated.
2020-12-25 17:03:31 +01:00
translators
7b515fa0e2
Update: Translations from eints
2020-12-25 13:07:40 +00:00
frosch
ba49fa3b82
Codechange: Rename strings to match their usage.
2020-12-25 00:40:35 +01:00
frosch
2bb691f50e
Change: Remove the LAN/Internet combobox from the server list in favour of adding two separate search buttons.
2020-12-25 00:40:35 +01:00
Tyler Trahan
7bdfb382a8
Change: Towns don't build dead-end road bridges ( #8401 )
2020-12-25 00:37:13 +01:00
Pavel Stupnikov
22b9dec960
Feature: Add an option to disable tree growth completely ( #8415 )
2020-12-25 00:36:54 +01:00
Pavel Stupnikov
04e572933d
Fix: Don't lower tree density if spreading is not enabled ( #8413 )
2020-12-25 00:36:45 +01:00
Jonathan G Rennison
94d629d79b
Change: [Linkgraph] Allow job threads to be aborted early when clearing schedule ( #8416 )
...
When link graph jobs are cleared due to abandoning the game or exiting,
flag the job as aborted.
The link graph job running in a separate thread checks the aborted flag
periodically and terminates processing early if set.
This reduces the delay at game abandon or exit if a long-running job
would otherwise still be running.
2020-12-25 00:36:36 +01:00
translators
ad47e3d9e6
Update: Translations from eints
...
finnish: 1 change by hpiirai
2020-12-24 18:19:47 +00:00
translators
2e6f37ecf1
Update: Translations from eints
...
arabic (egypt): 15 changes by AviationGamerX
korean: 15 changes by telk5093
finnish: 12 changes by hpiirai
2020-12-23 18:17:50 +00:00
translators
cc8301449e
Update: Translations from eints
...
korean: 2 changes by telk5093
catalan: 13 changes by perezdidac
2020-12-22 18:13:57 +00:00
Jonathan G Rennison
7f0fefddcf
Change: [Linkgraph] Only acquire thread join performance measurements on network clients
...
Network servers and single player clients do not block on thread joins
due to instead pausing shortly before the join is due.
2020-12-22 15:17:57 +01:00
Jonathan G Rennison
0c5dc5d41e
Change: [Linkgraph] Pause the game when linkgraph jobs lag ( #6470 )
...
Check if the job is still running two date fract ticks before it is due
to join, and if so pause the game until its done.
When loading a game, check if the game would block immediately due to
a job which is scheduled to be joined within two date fract ticks,
and if so pause the game until its done.
This avoids the main thread being blocked on a thread join, which appears
to the user as if the game is unresponsive, as the UI does not repaint
and cannot be interacted with.
Show if pause is due to link graph job in status bar, update network
messages.
This does not apply for network clients.
2020-12-22 15:17:57 +01:00
Pavel Stupnikov
9a45a0f535
Feature: Set exclusive access to industry from GS ( #8115 )
2020-12-22 14:29:48 +01:00
Niels Martin Hansen
b7751c483e
Feature: Influence industry production changes from GS ( #7912 )
2020-12-22 14:21:31 +01:00
Patric Stout
547e5fdb65
Fix 86e08aa: STR_CARGO_PLURAL_CANDY with cases was not renamed ( #8412 )
2020-12-22 13:12:47 +01:00
Patric Stout
d8c8f4e72d
Fix: next 67 savegame versions are used in PatchPacks; skip them ( #8411 )
...
Various of PatchPacks (Spring 2013, Joker, ChillPP) used versions
slightly higher than ours. Of course, as time went by, this
caught up with us, and we are now almost pushing a new version
that would conflict with them. To avoid users creating unneeded
issues about "why can I not load my savegame", lets be ahead of
the curve and flat-out refuse to load them.
Version-wise, this is totally fine. We have ~32k versions to go
before we run out (0x8000 is masked by JGRPP; we should avoid
using that). At the rate we bump savegames, this is not going to
happen in any sane reality.
2020-12-22 10:44:07 +01:00
Matt Kimber
6c3a5b5b17
Fix c02ef3e4: [NewGRF] Variable 0x44 was always HZB_TOWN_EDGE for road stops. ( #8400 )
2020-12-21 23:46:38 +01:00
Bernard Teo
981c540201
Change: Place "Group by" above "Sort by" in station window for consistency
2020-12-21 23:15:53 +01:00
Bernard Teo
4af1acfe92
Feature: Drag-and-drop vehicles in group GUI for shared order groups
2020-12-21 23:15:53 +01:00
Bernard Teo
a5047b7566
Cleanup: Use range-based for-loop in group_gui.cpp
2020-12-21 23:15:53 +01:00
Bernard Teo
61fb1cac54
Cleanup: Move EndContainer() for empty WWT_PANEL to the same line
2020-12-21 23:15:53 +01:00
Bernard Teo
e59c400ca6
Feature: Option to group vehicle lists by shared orders
...
This applies to all kinds of vehicle lists, as well as the "vehicle groups" window.
2020-12-21 23:15:53 +01:00
Bernard Teo
584df548f1
Codechange: Make vehicle lists internally support grouping of vehicles
...
This is in preparation for the new UI feature that allows grouping by shared orders.
2020-12-21 23:15:53 +01:00
Xaroth Brook
86e08aa8ef
Update: Apply name changes to all languages.
2020-12-21 23:12:58 +01:00
Xaroth Brook
d05be2cff5
Cleanup: Rework the CargoSpec macro for improved readability.
2020-12-21 23:12:58 +01:00
Patric Stout
34051c10df
Doc: some comments for the win32 video driver ( #8409 )
...
Co-authored-by: Niels Martin Hansen <nielsm@indvikleren.dk>
2020-12-21 22:28:56 +01:00
translators
f24bc8b509
Update: Translations from eints
...
vietnamese: 3 changes by KhoiCanDev
russian: 4 changes by Ln-Wolf
polish: 11 changes by yazalo
2020-12-21 18:08:31 +00:00