Commit Graph

43235 Commits

Author SHA1 Message Date
Patric Stout
a3d631ffed Change: make nlohmann a mandatory library to build OpenTTD (#11235) 2023-08-28 19:04:36 +02:00
Jonathan G Rennison
8e755bf0c2 Network: Remove NETWORK_SEND_DOUBLE_SEED define 2023-08-28 13:18:36 +01:00
Patric Stout
abc060525d Add: calendar date for Survey results
This means no heuristics is possible on around which date people
play the game.
2023-08-28 13:02:52 +02:00
Patric Stout
b0d7cfaa3d Change: [Win32] don't allocate 192KiB of memory on the stack on crash (#11240)
Heap is out of the question, as it might be corrupted.
Allocating this much on stack is silly.

So instead, allocate virtual pages to write the information in.
2023-08-28 12:14:11 +02:00
Patric Stout
de5e338a76 Change: mention in MacOS / Windows crashlog popup when files couldn't be generated (#11239)
For example, if the crash.sav couldn't be created, and the TryExcept
detected an issue, write out that the file is not available in
the popup.
2023-08-27 22:49:12 +00:00
Joan Josep
be9a690f41 Fix #9642: Keep infrastructure totals when overbuilding road depots. (#11229) 2023-08-28 00:20:37 +02:00
Jonathan G Rennison
ee4e82c1b6 Plans GUI: Fix out of bounds read when selected plan remotely removed 2023-08-27 22:35:18 +01:00
Jonathan G Rennison
40f9b61b4c Crash log: Windows: Fix screenshot filename in crash dialog box 2023-08-27 22:07:28 +01:00
Patric Stout
d4312c59a4 Codechange: [MacOS] use backtrace() instead of our custom variant (#11233)
As mentioned in the comment, we only did it ourselves as we once
were compatible with versions before 10.5. But that time has long
gone. So let's update the code to a bit more modern approach.
2023-08-27 22:32:11 +02:00
Joan Josep
5e6b5d981f Codechange: Use existing functions in GetMonthlyInfrastructureCosts. (#11237) 2023-08-27 22:12:44 +02:00
Patric Stout
b00e483b0f Change: recover when possible from crashes during a crash (#11238) 2023-08-27 21:54:05 +02:00
translators
99e4a14cdf Update: Translations from eints
english (au): 1 change by krysclarke
finnish: 3 changes by hpiirai
danish: 1 change by bscargo
french: 1 change by glx22
portuguese (brazilian): 1 change by pasantoro
2023-08-27 18:39:02 +00:00
Patric Stout
29a37c2e0b Change: [Win32] unify the crashlog handler with the other OSes (#11236)
While at it, make the crash text a bit more readable, and sync
this with MacOS.
2023-08-27 17:58:31 +00:00
Jonathan G Rennison
9dc0f0c95c Programmable pre-signals: Fix instruction indent in RTL mode 2023-08-27 14:01:04 +01:00
Jonathan G Rennison
02aecca5ae Conditional order: Replace "next station" with manually set station 2023-08-27 13:47:40 +01:00
Jonathan G Rennison
a1eefaecd5 NWidgetStacked: Allow treating planes independentally for layout 2023-08-27 13:36:37 +01:00
Jonathan G Rennison
691e2dcc69 Fix cargo waiting amount via station not being cleared when station deleted 2023-08-27 10:21:46 +01:00
Jonathan G Rennison
c11be37fd9 Add xdata2 field to OrderExtraInfo 2023-08-27 10:03:37 +01:00
Jonathan G Rennison
e377535ea6 Routing restrictions: Fix instruction indent in RTL mode 2023-08-27 08:59:37 +01:00
Jonathan G Rennison
7d3e627687 TBTR: Fix layout of template edit window info panel in RTL languages 2023-08-27 03:08:59 +01:00
Jonathan G Rennison
d6041149a4 TBTR: Fix layout of middle panel in RTL languages 2023-08-27 03:08:59 +01:00
Jonathan G Rennison
c6dcb28372 TBTR: Fix layout of bottom panel in RTL languages 2023-08-27 03:08:59 +01:00
Jonathan G Rennison
03c3050c43 Fix too small string buffer in FormatUnitWeightRatio 2023-08-27 00:49:40 +01:00
Jonathan G Rennison
0f8d8ca485 TBTR: Fix layout of top panel in RTL languages 2023-08-27 00:44:59 +01:00
Jonathan G Rennison
3b8d8aeb6a TBTR: Adjust config buttons/text in main window
Clarify refit and depot options
Adjust layout
2023-08-26 23:59:52 +01:00
Jonathan G Rennison
8dc635b516 Order window: Fix misalignment of shared order vehicles button 2023-08-26 22:17:24 +01:00
Jonathan G Rennison
668a0f774a Window: Add accessors for cached NWidgetLeaf dimensions 2023-08-26 22:15:05 +01:00
Jonathan G Rennison
81a0ed0763 TBTR: Change template mode buttons to on/off instead of push 2023-08-26 21:41:49 +01:00
translators
f2841e62d9 Update: Translations from eints
russian: 1 change by Ln-Wolf
turkish: 1 change by densxd
portuguese: 1 change by azulcosta
polish: 3 changes by pAter-exe
2023-08-26 18:38:15 +00:00
Jonathan G Rennison
a0e3885acc Add airport tile variables to get airport type local ID and layout 2023-08-26 15:01:10 +01:00
Jonathan G Rennison
e72744cc77 Debug: Show airport type/layout in debug window 2023-08-26 14:11:54 +01:00
translators
6726918ab0 Update: Translations from eints
catalan: 30 changes by J0anJosep
2023-08-25 18:38:04 +00:00
Richard Wheeler
96fdfb941a Feature: Transparency option for cost and income indicators (#11001) 2023-08-25 16:04:40 +02:00
Joan Josep
a938067d6b Codechange: Invalid depot value is unrelated to invalid station value. (#11227) 2023-08-25 14:29:51 +02:00
translators
9aef380c99 Update: Translations from eints
italian: 43 changes by Rivarossi
french: 1 change by ottdfevr
2023-08-24 18:38:24 +00:00
Jonathan G Rennison
5f8bfb176c Support articulated engines with multiple cargoes in engine news messages 2023-08-24 17:45:25 +01:00
Jonathan G Rennison
547c00b465 Settings: Only write out config on setting change for persistent changes 2023-08-24 17:27:47 +01:00
Jonathan G Rennison
f8c8ba2670 Settings: Split HandleSettingDescs into per-ini functions 2023-08-24 17:14:13 +01:00
Jonathan G Rennison
c8501938b0 Fix 19835b51: Wrong GoodsEntryData used after vehicle refit in station 2023-08-23 21:52:16 +01:00
Jonathan G Rennison
84b7f2eb20 Fix 19835b51: GoodsEntryData was not zero-inited 2023-08-23 21:48:28 +01:00
Jonathan G Rennison
1eb1b0ffcb Debug: Show cargo packet info if cargo is reserved 2023-08-23 21:29:01 +01:00
Jonathan G Rennison
056616ae1a Fix text truncation in PNG screenshot metadata 2023-08-23 20:58:06 +01:00
Jonathan G Rennison
b323e1a8ae Remove pessimising std::move 2023-08-23 19:45:44 +01:00
Jonathan G Rennison
d132dc67d7 Fix compilation issues on clang
Due to template template argument parameter count mismatch
See: 23ad010d
2023-08-23 19:44:44 +01:00
Jonathan G Rennison
22f9a6d7b0 Fix 19835b51: Linker issues with static empty structs 2023-08-23 19:25:45 +01:00
Jonathan G Rennison
14dc6586bc Sprite cache: Avoid resizing to fully zoomed if not needed 2023-08-23 02:20:53 +01:00
Jonathan G Rennison
0cac2526f1 Fix 2f692a79: Dest ptr not advanced for BM_BLACK_REMAP in 32bpp anim blitter 2023-08-23 02:03:00 +01:00
Jonathan G Rennison
3a8217fc99 Sprite cache: Move LRU to struct Sprite
Prune from sprite cache by individual sprite structs instead of IDs
2023-08-23 01:30:57 +01:00
Jonathan G Rennison
8077274ed1 Sprite cache: Clamp recolour sprite allocation to max size 2023-08-23 01:02:15 +01:00
Jonathan G Rennison
627fd3d4fa Add console command to dump sprite cache stats 2023-08-23 00:26:59 +01:00