Commit Graph

32753 Commits

Author SHA1 Message Date
Michael Lutz
e211ab56ef Add: [Script] Function to get all rail types of an rail engine. 2025-12-08 15:44:14 +05:00
Michael Lutz
8639f79934 Add: [NewGRF] Train property to set multiple track types for an engine. 2025-12-08 15:44:12 +05:00
Michael Lutz
4bcb58cf52 Codechange: Store the rail type of rail engines as a RailTypes bitmask. 2025-12-08 15:42:35 +05:00
Michael Lutz
715b1fb405 Codechange: Use an enum for vehicle acceleration model. 2025-12-08 15:40:58 +05:00
translators
01b792cd66 Update: Translations from eints
catalan: 2 changes by J0anJosep
latvian: 53 changes by lexuslatvia
portuguese: 36 changes by jcteotonio
2025-12-08 15:40:58 +05:00
translators
20d36f8ada Update: Translations from eints
norwegian (bokmal): 2 changes by eriksorngard
vietnamese: 14 changes by KhoiCanDev
russian: 1 change by Ln-Wolf
dutch: 1 change by Afoklala
2025-12-08 15:40:58 +05:00
Peter Nelson
a2b2fe3058 Codechange: Remove two vector typedefs which are only used once. (#14612) 2025-12-08 15:39:39 +05:00
Peter Nelson
404e9bb506 Codechange: Prefer EnumBitSet's All() method over bitwise comparisons. (#14611)
This makes the intent of the operation clearer.
2025-12-08 15:39:37 +05:00
Peter Nelson
74840d1b0a Fix 9a294ab2ed: Bridge height check for waypoints didn't include axis in layout. (#14609)
It's unlikely that X and Y axis waypoints have different heights, but not impossible.
2025-12-08 15:39:34 +05:00
translators
f289771d4a Update: Translations from eints
english (au): 1 change by krysclarke
swedish: 1 change by robert-i
chinese (traditional): 1 change by KogentaSan
chinese (simplified): 2 changes by WenSimEHRP
korean: 1 change by telk5093
greek: 1 change by gh658804
finnish: 1 change by hpiirai
portuguese: 9 changes by jcteotonio
portuguese (brazilian): 1 change by pasantoro
polish: 1 change by Rito13
2025-12-08 15:39:34 +05:00
Peter Nelson
f4cef89caa Codechange: Range-check rail/road/tram maps by size instead of constant. (#14602)
* Compare against the size of the array instead of the constant used to define the array.
* `type_map` alias now uses auto to avoid defining the type each time.
* `_cur_gps.grffile->railtype_map` is now aliased to `type_map` to simplify and standardise.
2025-12-08 15:39:31 +05:00
translators
bee4d22b2e Update: Translations from eints
english (us): 1 change by 2TallTyler
korean: 1 change by telk5093
hungarian: 1 change by vargaviktor
danish: 2 changes by New-Authentication
dutch: 1 change by nicobresseleers
portuguese: 12 changes by jcteotonio
2025-12-08 15:39:31 +05:00
Peter Nelson
9d9390f89d Change: Allow bridges over locks. (#14595)
The bridge must be at least 2 levels higher than the lock.
2025-12-08 15:37:51 +05:00
translators
559bdb04e9 Update: Translations from eints
english (au): 1 change by krysclarke
swedish: 1 change by robert-i
chinese (traditional): 1 change by KogentaSan
vietnamese: 1 change by KhoiCanDev
greek: 1 change by gh658804
russian: 1 change by Ln-Wolf
finnish: 1 change by hpiirai
portuguese: 76 changes by jcteotonio
portuguese (brazilian): 1 change by pasantoro
polish: 4 changes by pAter-exe
2025-12-08 15:37:51 +05:00
translators
dd382d49d1 Update: Translations from eints
italian: 64 changes by Boh132Boh
portuguese: 172 changes by jcteotonio
2025-12-08 15:37:51 +05:00
Peter Nelson
5833ac7497 Change: Allow bridges over docks. (#14594) 2025-12-08 15:36:15 +05:00
Peter Nelson
20ae5ade0e Fix: Don't add spacing in rail/road type dropdowns if no badges are present. (#14598) 2025-12-08 15:36:13 +05:00
translators
5cf6fba14a Update: Translations from eints
portuguese: 44 changes by jcteotonio
portuguese (brazilian): 6 changes by jcteotonio
2025-12-08 15:36:13 +05:00
Peter Nelson
f5dbc31ffd Codechange: Split table data out of rail.cpp (#14597) 2025-12-08 15:36:10 +05:00
Peter Nelson
7e46955467 Fix c02ef3e456: [AI] Incorrect infrastructure cost for road/tram tiles. (#14596)
Infrastructure total count should be split between road and tram pieces.
2025-12-08 15:36:08 +05:00
translators
9da45418d3 Update: Translations from eints
portuguese: 25 changes by jcteotonio
2025-12-08 15:36:08 +05:00
translators
6178ec2645 Update: Translations from eints
chinese (traditional): 1 change by KogentaSan
danish: 28 changes by New-Authentication
portuguese: 30 changes by jcteotonio
2025-12-08 15:36:08 +05:00
Peter Nelson
8683a9616d Codechange: Give better names to water tile layouts. (#14592) 2025-12-08 15:36:05 +05:00
Peter Nelson
75f934ba96 Codefix: Use of nullptr instead of std::nullopt. (#14590) 2025-12-08 15:36:04 +05:00
translators
f83c23150d Update: Translations from eints
danish: 10 changes by New-Authentication
french: 1 change by ottdfevr
2025-12-08 15:36:04 +05:00
Peter Nelson
676de198bd Fix #14586, Fix 069ff846e4: Empty station tile layouts incorrectly substituted with default layouts. (#14587)
It is no longer possible for a layout to be missing, so the nullptr check should have been removed.
2025-12-08 15:35:59 +05:00
Peter Nelson
401853499e Fix #14584: Crash due to drawing non-existent orders of new vehicle. (#14585)
When the vehicle list window is grouped by orders, no check was made that vehicle's order list existed.
2025-12-08 15:35:54 +05:00
Peter Nelson
6608eaf218 Codechange: Remove MusicSystem::displayed_playlist. (#14582)
It is not actually used for display, and is basically a copy of the standard playlist with duplicated maintenance.
2025-12-08 15:35:52 +05:00
Peter Nelson
f9a281a794 Fix: Wrong row may be selected in music playlists. (#14581)
Include frame offset when clicking on music playlist to ensure the correct row is selected.
2025-12-08 15:35:50 +05:00
Peter Nelson
9ce4aef266 Codechange: Shuffle MusicSongInfo members to reduce alignment padding. (#14580) 2025-12-08 15:35:42 +05:00
Kuhnovic
49198ddae0 Codechange: Remove redundant data members from YAPF ship node. (#14577) 2025-12-08 15:35:39 +05:00
translators
bbd20110dc Update: Translations from eints
danish: 8 changes by New-Authentication
2025-12-08 15:35:39 +05:00
Peter Nelson
3a73fe7973 Codechange: Use span instead of raw pointer for animated cursors. (#14575)
This allows the terminator entry to be removed.
2025-12-08 15:33:49 +05:00
Peter Nelson
f61eb49961 Fix #14569: Ensure music playlist window is large enough. (#14570)
Take number of tracks allowed in custom playlist into account, instead of just the number of tracks loaded.
2025-12-08 15:33:47 +05:00
Cornelius Diekmann
f9b89b3560 Codefix f6555cf: fix comment track vs. tile (#14571) 2025-12-08 15:32:44 +05:00
Loïc Guilloux
9f5078c10b Fix #14278, ccd586a7: [Script] Don't set members inside operator new() (#14568) 2025-12-08 15:32:42 +05:00
translators
e34317e6ff Update: Translations from eints
portuguese: 5 changes by jcteotonio
2025-12-08 15:32:42 +05:00
Peter Nelson
7cafb09c37 Fix 6d6e64b1f0: Road stop properties 0x13/0x14 were not skipped properly. (#14567)
These properties where changed to be variable length for consistency, but ignoring them treated them as fixed length.
2025-12-08 15:32:40 +05:00
Peter Nelson
a72594102b Fix #13922: Ensure music track no widget is wide enough for track no. (#14566) 2025-12-08 15:32:38 +05:00
translators
c3c7a81ea7 Update: Translations from eints
galician: 2 changes by pvillaverde
vietnamese: 24 changes by MagicalDrizzle
french: 1 change by ottdfevr
2025-12-08 15:32:38 +05:00
dP
38dd59e88e Add timer dependency 2025-12-08 15:32:33 +05:00
Peter Nelson
31f8eb0c4f Fix 7b60e5ccad: Badge filters were only applied to trains. (#14565) 2025-12-08 15:31:17 +05:00
dP
466e919d01 Fix some compilation warnings 2025-12-08 02:44:39 +05:00
dP
f19d9122cc Merge branch 'v14' 2025-12-08 02:42:34 +05:00
dP
d8a07b6ea2 Measure map download and loading times and send them to the server 2025-12-05 17:57:58 +05:00
dP
9cf3c5c3d7 Join to last built station with improved join, also don't join outside join area 2025-12-05 17:57:29 +05:00
dP
0cca44ef47 Implement new cmserver join packet 2025-12-04 23:42:52 +05:00
dP
5dc4ad065b Don't require a specific zstd version 2025-12-03 23:27:42 +05:00
dP
4ff6a8a385 Show command name in debug messages 2025-12-03 16:13:52 +05:00
dP
732de20db5 Merge branch 'v14' 2025-12-02 05:06:04 +05:00