Commit Graph

57603 Commits

Author SHA1 Message Date
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
Kuhnovic
a7c2f489f6 Fix #5713: FindClosestShipDepot only considers depots that are actually reachable (#11768)
(cherry picked from commit 8a4a99b7e8)
2024-01-27 18:49:14 +00:00
Peter Nelson
d3c673e20b
Fix #11894: Defer window OnResize event to avoid processing multiple times per input tick. (#11900) 2024-01-27 18:44:27 +00:00
Patric Stout
8c5ad1ade7
Fix fd9e72a7: actually use the parameter value instead of the current date (#11898) 2024-01-27 17:34:04 +00:00
Jonathan G Rennison
f9321686a7 Remove old reference to FindLastBit64 from tests 2024-01-27 17:11:29 +00:00
Jonathan G Rennison
2e93daf93b Advance _scaled_date_ticks in scenario editor
For timetables and train speed adaptation
2024-01-27 16:48:00 +00:00
Jonathan G Rennison
7db457ad80 Use _scaled_date_ticks in ODATFB_NEAREST_DEPOT rate-limiting 2024-01-27 16:40:11 +00:00
Jonathan G Rennison
1ce8930583 Use DateTicksScaled for Vehicle::last_loading_tick 2024-01-27 16:38:27 +00:00
Jonathan G Rennison
74686b9c63 Add an AsTicksT template cast with clamping to DateTicksScaledDelta
Implement AsTicks in terms of AsTicksT
2024-01-27 16:28:45 +00:00