Commit Graph

43951 Commits

Author SHA1 Message Date
Jonathan G Rennison
539ca43525 Replace asserts with exits in GfxFillRect 2024-02-03 18:16:30 +00:00
kiwitreekor
16574946da Add: Station variable 6B to get extended station id of nearby tiles (#10953)
(cherry picked from commit 8d62a8f0f0)
2024-02-03 17:53:58 +00:00
Jonathan G Rennison
728971ddbc Road stops: Remove 0x6B as alias of roadstop_road_info_nearby_tiles 2024-02-03 17:52:28 +00:00
Jonathan G Rennison
28b156d95c Fix rounding of right edge of viewport mark dirty area
Could result in vehicles leaving pixels behind when moving left
2024-02-03 14:57:15 +00:00
Jonathan G Rennison
41299128e5 Explicitly cast time units when calculating wait time in LoadUnloadVehicle 2024-02-03 14:35:38 +00:00
Jonathan G Rennison
2941567c02 Fix leftover strings in Korean translation
See: #642
2024-02-03 12:21:06 +00:00
TELK
1174794c82 Update: Korean translation up to 0.57.0 2024-02-03 12:07:28 +00:00
Jonathan G Rennison
04fc0c37dc Crashlog: Tag image base with [[maybe_unused]] 2024-02-03 12:04:55 +00:00
Jonathan G Rennison
7d92f185d3 Fix picker tool item selection in rail/road station and waypoint windows 2024-02-03 12:02:58 +00:00
glx22
48c97d6cde Fix 48b6b18: Increase MAX_VALUATE_OPS to match the previous limit
(cherry picked from commit a502453033)
2024-02-03 11:40:11 +00:00
Jonathan G Rennison
66e57e6b2d Crashlog: Handle image relocation in MinGW BFD symbol lookup 2024-02-02 21:11:22 +00:00
Jonathan G Rennison
d00424008f Crashlog: Adjust Linux stacktrace format when using BFD 2024-02-02 21:11:22 +00:00
Jonathan G Rennison
a4c14171a7 Crashlog: Re-use BFD instances for the same object 2024-02-02 21:11:22 +00:00
Jonathan G Rennison
fcc6529b6a Ensure scroll count and engine list size match in build vehicle window 2024-02-02 18:24:53 +00:00
Jonathan G Rennison
860af4de29 Fix sort by total cargo in build ship window 2024-02-02 01:48:28 +00:00
Jonathan G Rennison
3886ea75a6 Picker tool: Add support for industries 2024-02-01 20:03:56 +00:00
Jonathan G Rennison
9f55550417 Multi-cargo ships: Sprite group cargo thresholds refer to entire ship 2024-02-01 18:48:07 +00:00
Jonathan G Rennison
47393b42dc VarAction2: Fix procedure calls being incorrectly eliminated
In the case where they were only referenced by substitution candidates
2024-02-01 18:17:04 +00:00
Jonathan G Rennison
000ae23eb2 VarAction2: Fix loads of temporary variable 0 not being tracked 2024-02-01 18:13:01 +00:00
Jonathan G Rennison
b49a38bf6c Fix build and refit with multi-cargo ships only refitting first part 2024-02-01 02:34:49 +00:00
Jonathan G Rennison
a5a315b55d Fix inconsistent order of ship running cost and capacity 2024-01-31 20:30:20 +00:00
Jonathan G Rennison
73bcd40776 Fix taking over a company using shares using the wrong news string
See: #637
2024-01-30 19:49:46 +00:00
Jonathan G Rennison
7d086ae686 Tracerestrict: Only apply wait at PBS for intermediary signals in forward direction 2024-01-30 18:47:48 +00:00
Jonathan G Rennison
b4b61beeec Fix slot acquire on PBS reservation end on tunnel/bridge entrance signals 2024-01-30 18:31:44 +00:00
Jonathan G Rennison
3835500c9a Fix non-text time input dialog (when using time in minutes)
See: #638
2024-01-30 18:11:56 +00:00
Jonathan G Rennison
8364ba3ce7 Fix getting information from JGRPP servers on local LAN 2024-01-30 01:22:43 +00:00
Jonathan G Rennison
63e6a9503a Fix 52128144: Parsing of version 7 network game info packets 2024-01-30 00:56:40 +00:00
Jonathan G Rennison
2cdd85c79c Use StrLastPathSegment in TarScanner::AddFile 2024-01-29 23:57:41 +00:00
Jonathan G Rennison
a1c7d1bd30 Remove non-owning string pointer from StringParameter
(For the time being)

See: https://github.com/OpenTTD/OpenTTD/issues/11922
2024-01-29 22:25:11 +00:00
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
Jonathan G Rennison
e148f7653b Use scaled.vsep_sparse for EXP_SPACING in company infrastructure window 2024-01-29 18:01:19 +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
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
Jonathan G Rennison
0a16ba1bd7 Scheduled dispatch: Add dispatch slot tooltip 2024-01-28 13:20:28 +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
Jonathan G Rennison
3a4623c027 Scheduled dispatch: Add slot remove mode, label last/next slots otherwise 2024-01-27 21:31:40 +00: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
Jonathan G Rennison
5b052ff91a Avoid truncation when calculating AircraftCache::cached_max_range_sqr 2024-01-27 20:03:46 +00:00
Peter Nelson
0619b0d5da Clear mismatched translations of STR_CONFIG_SETTING_CHUNNEL_HELPTEXT 2024-01-27 19:23:41 +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