Commit Graph

57611 Commits

Author SHA1 Message Date
Jonathan G Rennison
5e29901d02 Tracerestrict: Allow nesting temporary slot states
Use a temporary state stack instead of passing the state directly
in TraceRestrictProgramInput

No longer exit early from ExtendTrainReservation to handle slots, this
fixes reservation failures when starting from a signal with a slot acquire

More thorough fix for 9e8a4314
2024-01-29 22:16:29 +00:00
Tyler Trahan
2b1f78d2ca Fix: Use alternate timekeeping units in savegame title (#11912) 2024-01-29 22:11:00 +00:00
Peter Nelson
435d48e182 Fix: Sandbox window does not reduce height when interface scale is reduced. (#11924)
line_height was only ever made larger, and icon.height ignored.
2024-01-29 22:01:22 +00:00
Patric Stout
4024bb5554 Fix #11910: use economy timer for dmp_cmds files (#11925) 2024-01-29 21:58:22 +00:00
Patric Stout
f1842f9144 Add: {CURRENCY_SHORT} only did k / m suffix. Add bn / tn and make translatable. (#11921)
64bit numbers are REALLY large, but our compact method was build
for 32bit numbers. Extend it to 64bit.
2024-01-29 20:20:35 +00:00
translators
1d4b10a8b8 Update: Translations from eints
english (au): 86 changes by krysclarke
english (us): 105 changes by 2TallTyler
chinese (simplified): 29 changes by WenSimEHRP
korean: 156 changes by telk5093
russian: 4 changes by Ln-Wolf
danish: 1 change by bscargo
spanish: 132 changes by lrlopez
portuguese: 52 changes by azulcosta
portuguese (brazilian): 181 changes by pasantoro
2024-01-29 18:34:38 +00:00
Jonathan G Rennison
e148f7653b Use scaled.vsep_sparse for EXP_SPACING in company infrastructure window 2024-01-29 18:01:19 +00:00
dP
acaceb45ba Codechange: Make command constant names consistent with command proc (#11920) 2024-01-29 13:41:36 +01:00
Peter Nelson
bf013097a7 Fix #11918: Houses should build only next to road stops, not any station type. (#11919) 2024-01-29 01:27:34 +00:00
Jonathan G Rennison
77f1655686 Disable MinGW std threads includes by default
In preparation for removal later
2024-01-29 00:39:41 +00:00
Jonathan G Rennison
31d87f6101 Fix 9e8a4314: Start signal state erroneously changed if it has slot acquire 2024-01-28 20:03:10 +00:00
Loïc Guilloux
90084dc74d Codechange: ignore duplicate script messages in regression output (#11905) 2024-01-28 19:35:29 +01:00
Jonathan G Rennison
efab96b82b Set default service interval and timetable flags for virtual trains
See: #636
2024-01-28 17:50:13 +00:00
Jonathan G Rennison
18739394e1 Fix paths of content in tar files 2024-01-28 17:37:19 +00:00
Jonathan G Rennison
9bea1e3cc3 Scheduled dispatch: Allow tagging departure slots, add to conditional order 2024-01-28 17:14:03 +00:00
Jonathan G Rennison
be469405df Bitmath: Add utility functions for calculating bit masks
Add tests
2024-01-28 15:41:50 +00:00
translators
809b599c21 Update: Translations from eints
english (au): 48 changes by krysclarke
english (us): 32 changes by 2TallTyler
vietnamese: 10 changes by KhoiCanDev
chinese (simplified): 46 changes by WenSimEHRP, 2 changes by XiaoJi-Game
korean: 58 changes by telk5093
russian: 57 changes by Ln-Wolf
finnish: 22 changes by hpiirai
catalan: 30 changes by J0anJosep
danish: 12 changes by bscargo
dutch: 45 changes by Afoklala
spanish: 214 changes by lrlopez
french: 8 changes by glx22
portuguese: 23 changes by azulcosta
portuguese (brazilian): 30 changes by pasantoro
polish: 4 changes by pAter-exe
2024-01-28 15:00:40 +00:00
Koen Bussemaker
5a55c4a934 Feature: [NewGRF] Allow higher max speeds for ships 2024-01-28 14:54:51 +01:00
Loïc Guilloux
461d69a8f6 Fix #11907: Allow genders for time related {UNITS_XXX} (#11908) 2024-01-28 14:45:08 +01:00
frosch
17dfc1a49a Codechange: Replace SF_GUI_NEGATIVE_IS_SPECIAL with a settings value callback. 2024-01-28 14:44:24 +01:00
frosch
28c83089f6 Codechange: Remove TKM string code. 2024-01-28 14:44:24 +01:00
frosch
9344b50435 Codechange: Remove TKM from settings texts. 2024-01-28 14:44:24 +01:00
frosch
9e9a8ca7f6 Codechange: Add callbacks to IntSettingDesc to support dynamic strings for title, help and values. 2024-01-28 14:44:24 +01:00
frosch
022b9e92d2 Codechange: Move settings string formatting into IntSettingDesc members. 2024-01-28 14:44:24 +01:00
frosch
a9d1078434 Codechange: Remove TKM from town action tooltips. 2024-01-28 14:44:24 +01:00
frosch
abfeeea849 Codechange: Compose engine preview text from multiple strings. 2024-01-28 14:44:24 +01:00
frosch
68c64d2511 Codechange: Remove TKM string codes by duplicating strings. 2024-01-28 14:44:24 +01:00
frosch
bd3d687bf9 Codechange: Merge all BaseGraphWindow widget enums into one.
Previously it relied on some enum entries using the same integer value.
2024-01-28 14:44:24 +01:00
frosch
69f47caf3f Codechange: Remove TKM from vehicle list sorting dropdowns. 2024-01-28 14:44:24 +01:00
frosch
9741510396 Fix: Wallclock setting should not affect percent-based service interval increments. 2024-01-28 14:44:24 +01:00
Jonathan G Rennison
0a16ba1bd7 Scheduled dispatch: Add dispatch slot tooltip 2024-01-28 13:20:28 +00:00
Tyler Trahan
86981c0983 Fix: Extra refit button when train/RV is in a depot (#11904) 2024-01-28 08:01:09 -05:00
Patric Stout
05b253b33b Fix ea8c1d85: improve smoothness of smooth-scrolling for 60+Hz screens (#11884) 2024-01-28 09:56:21 +00:00
Jonathan G Rennison
6c329871f1 Scheduled dispatch: Add per dispatch slot flags field
Add flag for slot re-use
2024-01-28 01:48:54 +00:00
Jonathan G Rennison
dee611f5f3 Remove incorrect check from CmdScheduledDispatchAdjust 2024-01-28 00:38:22 +00:00
Jonathan G Rennison
1edc828b76 Pre-filter object descriptors in order save/load 2024-01-28 00:38:22 +00:00
Jonathan G Rennison
bd51b1b69a Remove pre-init of static vector in train speed adaptation map save/load 2024-01-28 00:08:52 +00:00
SamuXarick
0c4e509b60 Fix #10439: [GS] Validate story page button colour, flags, cursor and vehicle type (#11892)
Adds GSStoryPage::IsValidStoryPageButtonColour, GSStoryPage::IsValidStoryPageButtonFlags and GSStoryPage::IsValidStoryPageButtonCursor to the API.

Add missing enforced preconditions to validate parameters passed to MakePushButtonReference, MakeTileButtonReference and MakeVehicleButtonReference.
2024-01-28 00:29:10 +01:00
Jonathan G Rennison
3a4623c027 Scheduled dispatch: Add slot remove mode, label last/next slots otherwise 2024-01-27 21:31:40 +00:00
SamuXarick
76f0f9e386 Fix #10438: [GS] Validate story page element type for ScriptStoryPage::NewElement (#11888)
Fixes a crash that happens if an invalid StoryPageElementType is passed to ScriptStoryPage::NewElement.

Adds an enforced precondition that tests the validity of StoryPageElementType.

Adds GSStoryPage::IsValidStoryPageElementType to the API.
2024-01-27 22:11:02 +01:00
Jonathan G Rennison
ae801818ed Scheduled dispatch: Adjust window/button layout
Split window vertically into sections
2024-01-27 20:20:28 +00:00
Peter Nelson
009fea0e14 Fix: Memory leak in ICUParagraphLayout::NextLine() (#11895)
This function calls icu::BreakIterator::createLineInstance() but does not clean up after it.

Instead use a static instance that is cloned (for thread-safety) and deleted as necessary.

(cherry picked from commit 6d276698b6)
2024-01-27 20:20:28 +00:00
Peter Nelson
6d276698b6 Fix: Memory leak in ICUParagraphLayout::NextLine() (#11895)
This function calls icu::BreakIterator::createLineInstance() but does not clean up after it.

Instead use a static instance that is cloned (for thread-safety) and deleted as necessary.
2024-01-27 20:13:42 +00:00
Jonathan G Rennison
5b052ff91a Avoid truncation when calculating AircraftCache::cached_max_range_sqr 2024-01-27 20:03:46 +00:00
Jonathan G Rennison
1df7b21ee3 Fix #11889: ConstructWindow not called from SurveyResultTextfileWindow constructor (#11903) 2024-01-27 19:44:10 +00:00
Peter Nelson
0619b0d5da Clear mismatched translations of STR_CONFIG_SETTING_CHUNNEL_HELPTEXT 2024-01-27 19:23:41 +00:00
Patric Stout
250cf4f153 Doc: Forwardport changelog from 13.x branch (#11901) 2024-01-27 19:23:13 +00:00
TELK
b3ee22cdd3 Update: Korean translation for 592c038 2024-01-27 19:19:36 +00:00
TELK
0db3aee7b5 Update: Korean translation up to 0.56.2 2024-01-27 19:19:36 +00:00
Peter Nelson
4bf9c123d3 Fix: TextfileWindow called virtual methods before constructor completed. (#11889)
SetStringParameters() was called during widget tree init in the constructor.

Calls within a constructor cannot call the derived classes methods. This would result in invalid data being passed to the string system, which could then crash.

(cherry picked from commit fef0bfcfd3)
2024-01-27 18:53:11 +00:00