1
0
Fork 0
Commit Graph

29575 Commits (b88e6c0cd835e3dc816f62cbfce0598e42dbb92f)
 

Author SHA1 Message Date
Joan Josep b88e6c0cd8
Merge d82d36da97 into 3176de3f1d 2024-07-29 23:12:14 +03:00
Peter Nelson 3176de3f1d
Codefix: cargo_(dis)allowed for default refit masks are cargo classes, not CargoTypes. (#12884)
Use an alias for CargoClasses to avoid ambiguity.
2024-07-29 20:58:53 +01:00
Patric Stout bec37ee704
Fix: remove the invalid UTF-8 character (U+200B) from the traditional chinese translation (#12882)
Eints should be fixed to not allow this character in the first place,
but this unblocks building the source again.
2024-07-29 09:23:05 +02:00
translators 39688a4ccf Update: Translations from eints
welsh: 55 changes by Ansbaradigeidfran
2024-07-29 04:42:38 +00:00
translators 22e525dafe Update: Translations from eints
chinese (traditional): 140 changes by KogentaSan
2024-07-27 04:42:11 +00:00
Michael Lutz ddf6f33a8a
Change: Path signals now show green on junction-less tracks by default (#12857) 2024-07-26 23:51:49 +02:00
translators 9965cd9151 Update: Translations from eints
chinese (traditional): 46 changes by KogentaSan
2024-07-26 04:44:30 +00:00
translators 44b748a766 Update: Translations from eints
hungarian: 33 changes by peti2000
2024-07-25 04:44:39 +00:00
translators 1a6655bd1b Update: Translations from eints
chinese (traditional): 28 changes by KogentaSan
2024-07-24 04:42:02 +00:00
translators f4e5f1b34d Update: Translations from eints
chinese (traditional): 35 changes by KogentaSan
2024-07-23 04:42:05 +00:00
David Seifert db36e61807
Codefix: Compilation with GCC 15 due to missing CRTP usage (#12876) 2024-07-22 20:42:23 +02:00
translators b2faa14ab5 Update: Translations from eints
chinese (traditional): 57 changes by KogentaSan
galician: 1 change by pvillaverde
latvian: 17 changes by osprinkis
lithuanian: 8 changes by Br0l15
2024-07-22 04:43:29 +00:00
Ivan Pravdin da00a62d59
Fix #12856, e17c82e: Updating network settings does not invalidate data (#12858) 2024-07-21 16:59:48 -04:00
Peter Nelson 4ee45db51b
Change: [UI] Use scaled sprite sizes and correct matrix padding for content list. (#12875) 2024-07-21 14:01:29 +01:00
Peter Nelson 8b644f6ee6
Codechange: Use GetVisibleRangeIterators to draw script settings. (#12871) 2024-07-21 13:40:54 +01:00
Peter Nelson ba2b14b075 Change: [UI] Use proper matrix padding for server list test.
Text was only positioned correctly at 1x scale due to old pixel-based positioning method.
2024-07-21 10:07:50 +01:00
Peter Nelson d85f4b3ebf Change: [UI] Use interface scaled sizes for server list.
Avoid hardcoded values and use WidgetDimensions to set icon positions.

This fits better with non-power-of-2 interface scale.
2024-07-21 10:07:50 +01:00
Peter Nelson 4b6e3f86c2
Cleanup: Remove write-only flag_offset member from server list. (#12872)
A remnant of language flags, removed from the server list long ago.
2024-07-21 08:18:09 +01:00
translators 31e2f5a8a0 Update: Translations from eints
swedish: 3 changes by sereneavatar
chinese (traditional): 22 changes by KogentaSan
2024-07-21 04:42:17 +00:00
Peter Nelson 333e8e590e
Codefix: Don't assume 9 is the widest digit (#12870)
Use `SetDParamMaxDigit()` instead of `SetDParam()` with a large number.
2024-07-19 19:00:21 +01:00
translators 97479eb953 Update: Translations from eints
chinese (traditional): 97 changes by KogentaSan
2024-07-19 04:43:26 +00:00
translators 8ed854be58 Update: Translations from eints
chinese (traditional): 28 changes by KogentaSan
2024-07-18 04:43:42 +00:00
Peter Nelson cd739c2c33
Codechange: Replace dropdown's magic 2 with appropriate WidgetDimension. (#12869) 2024-07-17 22:20:38 +01:00
J0anJosep d82d36da97 Feature: Allow vehicle replacements even if new road or rail type is not compatible. 2024-07-17 22:23:33 +02:00
J0anJosep ef7c8884b8 Codechange: Add additional rules for placing trains in depots according to railtypes. 2024-07-17 22:23:28 +02:00
J0anJosep f8bc259ec0 Codechange: Adapt some functions that located the depot with its tile. 2024-07-17 22:23:23 +02:00
J0anJosep 373f9fe5ef Add: Adapt pathfinding in YAPF and NPF for depots. 2024-07-17 22:23:23 +02:00
J0anJosep 90228353e4 Add: Allow removing company rail depots in an area. 2024-07-17 22:23:23 +02:00
J0anJosep dff99a41cc Feature: Allow building depots by drag and drop and joining them if they have the same transport type. 2024-07-17 22:23:23 +02:00
J0anJosep ebcca95b15 Add: Add new viewport place methods for rectangles with one side with a fixed length. 2024-07-17 22:23:23 +02:00
J0anJosep d63b540d63 Feature: Highlight tiles of a depot and adjacent depot tiles when building. 2024-07-17 22:23:23 +02:00
J0anJosep de49571542 Feature: Add a window for joining depots. 2024-07-17 22:23:23 +02:00
J0anJosep 4a71111ceb Add: Settings for controlling depot spread.
# Conflicts:
#	src/saveload/saveload.h
2024-07-17 22:23:23 +02:00
J0anJosep 11fc7f2710 Codechange: BuildDepotVehicleList through a DepotId instead of a TileIndex. 2024-07-17 22:23:17 +02:00
J0anJosep 8610a80721 Prepare: Add some members to depot struct. 2024-07-17 22:23:17 +02:00
J0anJosep 829c5c33cf Codechange: OrderBackups are indexed through DepotID instead of TileIndex. 2024-07-17 22:23:08 +02:00
J0anJosep 6c5ce41b0a Codechange: Set DepotID related window numbers to WC_BUILD_VEHICLE windows. 2024-07-17 22:23:08 +02:00
Peter Nelson 7fb3d1a197 Codechange: Use range-for to iterate airport specs to find first available. 2024-07-17 20:57:33 +01:00
Peter Nelson 2199543fbc Codechange: Use GetVisibleRangeIterators when drawing airport specs. 2024-07-17 20:57:33 +01:00
Peter Nelson b9c44b29be
Codechange: Pass AirportSpec instead of index to airport resolver object. (#12866)
This avoids retrieving AirportSpec again when it is already available.
2024-07-17 18:16:22 +01:00
Peter Nelson e69c065d6e
Codechange: Use find_if to find waypoint StationSpec when converting old savegames. (#12865)
This simplifies an indexed loop.
2024-07-17 11:40:17 +01:00
J0anJosep d7bcc5e649 Codechange: Set the DepotID as the window number of WC_VEHICLE_DEPOT windows instead of a TileIndex. 2024-07-17 00:09:41 +02:00
J0anJosep 678b6ad467 Codechange: Go to hangar orders store the DepotID instead of the StationID. 2024-07-17 00:09:35 +02:00
J0anJosep 620d14c502 Codechange: Add a depot for each airport that has a hangar. 2024-07-17 00:09:29 +02:00
Joan Josep 891e53c72e
Codechange: move large switch case to separate function (#12863) 2024-07-16 19:41:04 +00:00
Loïc Guilloux d67963e616
Add: [Script] Include number of victims in ScriptEventVehicleCrashed (#12861) 2024-07-16 21:28:29 +02:00
translators eeed824329 Update: Translations from eints
norwegian (bokmal): 1 change by eriksorngard
chinese (simplified): 1 change by WenSimEHRP
german: 13 changes by Wuzzy2
2024-07-16 04:43:38 +00:00
translators 1fe11b7b57 Update: Translations from eints
chinese (simplified): 2 changes by WenSimEHRP
2024-07-15 04:43:37 +00:00
Jonathan G Rennison 65c666cb57
Codechange: Remove unused size field from struct SaveLoad (#12859) 2024-07-14 14:30:35 -04:00
translators 6006e832f2 Update: Translations from eints
finnish: 6 changes by hpiirai
2024-07-12 04:42:38 +00:00