1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-15 16:32:41 +01:00
Commit Graph

31719 Commits

Author SHA1 Message Date
Kuhnovic
7d252ff7fc Change: Ask for confirmation before deleting a savegame / scenario / heightmap. (#14621) 2025-09-15 13:14:56 +02:00
Peter Nelson
7240ed5817 Cleanup 3ac1a2f1e4: Don't load/save a train's railtypes property. (#14618)
A train's railtypes property is always reset by Train::ConsistChanged on load, so storing is not necessary.
2025-09-15 08:21:09 +01:00
translators
c111abad37 Update: Translations from eints
portuguese: 1 change by jcteotonio
2025-09-15 04:38:59 +00:00
Michael Lutz
52e97c981c Add: Show all railtypes in the build vehicle and engine preview dialogs. 2025-09-14 17:11:26 +02:00
Michael Lutz
313c6c45aa Add: [Script] Function to get all rail types of an rail engine. 2025-09-14 17:11:26 +02:00
Michael Lutz
1779da51c2 Add: [NewGRF] Train property to set multiple track types for an engine. 2025-09-14 17:11:26 +02:00
Michael Lutz
3ac1a2f1e4 Codechange: Store the rail type of rail engines as a RailTypes bitmask. 2025-09-14 17:11:26 +02:00
Michael Lutz
0715903b24 Codechange: Use an enum for vehicle acceleration model. 2025-09-14 17:11:26 +02:00
translators
748700bd9e Update: Translations from eints
catalan: 2 changes by J0anJosep
latvian: 53 changes by lexuslatvia
portuguese: 36 changes by jcteotonio
2025-09-14 04:38:01 +00:00
translators
96b59af4d1 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-09-13 04:36:41 +00:00
Peter Nelson
3356aa7c69 Codechange: Remove two vector typedefs which are only used once. (#14612) 2025-09-12 19:41:18 +01:00
Peter Nelson
ee664f7e8c Codechange: Prefer EnumBitSet's All() method over bitwise comparisons. (#14611)
This makes the intent of the operation clearer.
2025-09-12 19:37:17 +01:00
Peter Nelson
b1dc37fb05 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-09-12 08:28:42 +01:00
translators
3317997976 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-09-12 04:43:48 +00:00
Peter Nelson
d095526406 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-09-11 12:31:34 +01:00
translators
fe9093df96 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-09-11 04:37:58 +00:00
Peter Nelson
e10200efa4 Change: Allow bridges over locks. (#14595)
The bridge must be at least 2 levels higher than the lock.
2025-09-10 18:41:56 +01:00
translators
eb09d18418 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-09-10 04:36:50 +00:00
translators
033114da8c Update: Translations from eints
italian: 64 changes by Boh132Boh
portuguese: 172 changes by jcteotonio
2025-09-09 04:38:39 +00:00
Peter Nelson
5f84ff5c3f Change: Allow bridges over docks. (#14594) 2025-09-08 21:43:31 +01:00
Peter Nelson
43842f0bcc Fix: Don't add spacing in rail/road type dropdowns if no badges are present. (#14598) 2025-09-08 21:42:49 +01:00
translators
16cd420e4c Update: Translations from eints
portuguese: 44 changes by jcteotonio
portuguese (brazilian): 6 changes by jcteotonio
2025-09-08 04:40:24 +00:00
Peter Nelson
89a90080c5 Codechange: Split table data out of rail.cpp (#14597) 2025-09-07 15:44:54 +00:00
Peter Nelson
80541a7682 Fix c02ef3e456: [AI] Incorrect infrastructure cost for road/tram tiles. (#14596)
Infrastructure total count should be split between road and tram pieces.
2025-09-07 14:11:05 +01:00
translators
f82bd95faf Update: Translations from eints
portuguese: 25 changes by jcteotonio
2025-09-07 04:37:41 +00:00
translators
64dbb9383b Update: Translations from eints
chinese (traditional): 1 change by KogentaSan
danish: 28 changes by New-Authentication
portuguese: 30 changes by jcteotonio
2025-09-06 04:38:23 +00:00
Peter Nelson
244a267304 Codechange: Give better names to water tile layouts. (#14592) 2025-09-05 19:02:00 +00:00
Peter Nelson
a2f3d59707 Codefix: Use of nullptr instead of std::nullopt. (#14590) 2025-09-05 14:05:02 +01:00
translators
122023be8d Update: Translations from eints
danish: 10 changes by New-Authentication
french: 1 change by ottdfevr
2025-09-05 04:39:06 +00:00
Peter Nelson
6613da5d7e 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-09-04 21:11:02 +00:00
Peter Nelson
8d96ea1a5e 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-09-04 02:18:26 +00:00
Peter Nelson
4ed4a8b602 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-09-04 02:56:19 +01:00
Peter Nelson
5d15c8b8ab 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-09-03 18:02:26 +00:00
Peter Nelson
f3951214c1 Codechange: Shuffle MusicSongInfo members to reduce alignment padding. (#14580) 2025-09-03 17:22:50 +00:00
Kuhnovic
80f672d5b4 Codechange: Remove redundant data members from YAPF ship node. (#14577) 2025-09-03 12:52:15 +02:00
translators
5602555a7a Update: Translations from eints
danish: 8 changes by New-Authentication
2025-09-03 04:38:23 +00:00
Peter Nelson
736998b595 Codechange: Use span instead of raw pointer for animated cursors. (#14575)
This allows the terminator entry to be removed.
2025-09-02 21:48:24 +01:00
Peter Nelson
7d4282b341 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-09-02 20:18:33 +01:00
Cornelius Diekmann
dd426bb8c7 Codefix f6555cf: fix comment track vs. tile (#14571) 2025-09-02 13:55:08 +02:00
Loïc Guilloux
7a6e04561d Fix #14278, ccd586a7: [Script] Don't set members inside operator new() (#14568) 2025-09-02 12:58:31 +02:00
translators
fce2748bb7 Update: Translations from eints
portuguese: 5 changes by jcteotonio
2025-09-02 04:39:43 +00:00
Peter Nelson
960b840291 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-09-01 18:52:55 +01:00
Peter Nelson
73045f9b0e Fix #13922: Ensure music track no widget is wide enough for track no. (#14566) 2025-09-01 08:44:33 +00:00
translators
4c77026167 Update: Translations from eints
galician: 2 changes by pvillaverde
vietnamese: 24 changes by MagicalDrizzle
french: 1 change by ottdfevr
2025-09-01 04:42:09 +00:00
Peter Nelson
ff5e067341 Fix 7b60e5ccad: Badge filters were only applied to trains. (#14565) 2025-08-31 23:04:48 +01:00
Peter Nelson
24a4a1652b Update: Changelog for 15.0-beta3 (#14407) 15.0-beta3 2025-08-31 14:49:25 -04:00
Peter Nelson
a23970af32 Fix f30f808b50: Bridge over bridge head could be built one level too low. (#14564) 2025-08-31 19:15:49 +01:00
Peter Nelson
febf8b0d57 Fix #14561: Vehicle effects missing for vehicle on bridge. (#14563) 2025-08-31 18:27:46 +01:00
Loïc Guilloux
4b9afbe35b Codefix: [Script] Mention ScriptError::ERR_STATION_TOO_SPREAD_OUT in API doc (#14562) 2025-08-31 15:18:51 +00:00
Loïc Guilloux
80666a0d51 Add: [Script] ScriptError::ERR_BRIDGE_TOO_LOW (#14560) 2025-08-31 14:04:02 +00:00