Joan Josep
dca0a14abc
Merge cc5fcd29e9
into eeed824329
2024-07-16 13:13:27 +01: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
translators
58e4643196
Update: Translations from eints
...
vietnamese: 4 changes by KhoiCanDev
2024-07-11 04:43:17 +00:00
Peter Nelson
e2a796dbcd
Codefix: Potential unterminated string returned from convert_to_fs.
...
Converting from UTF-8 to UTF-16 could have resulted in a buffer overflow if the buffer size was exactly the length of the converted string.
Pass string_view/span to convert_from/to_fs instead, and ensure the buffer is terminated. This replaces passing a pointer to the buffer and the buffer size as separate parameters, allowing the compiler to pass both in one parameter.
Removes use of `lengthof()`.
2024-07-10 20:57:02 +01:00
Peter Nelson
b37954722b
Codefix: Don't copy path string to itself.
...
When determining base paths on Windows the path is converted to UCS-16, and then copied into the same buffer.
2024-07-10 20:57:02 +01:00
Peter Nelson
e22eb89b92
Codechange: Call BSWAP32() in the default_grf_overrides initializer.
...
This causes the BSWAP32 calls to happen only on first initialisation (BSWAP32 is not constexpr), instead of every time GRFs are reloaded.
2024-07-10 20:56:35 +01:00
Peter Nelson
b090c8e9bd
Codechange: Replace default overrides arrays with std::pair and use range-for.
...
This avoids indexed array access and use of lengthof.
2024-07-10 20:56:35 +01:00
Peter Nelson
70d63f87b8
Codechange: Re-order ResultSpriteGroup to reduce its size.
2024-07-10 13:22:22 +01:00
Peter Nelson
db0ae42d45
Codechange: Set base type of spritegroup related enums.
...
This has a small impact on SpriteGroup object sizes.
2024-07-10 13:22:22 +01:00
Peter Nelson
55acc1b36d
Codechange: Don't format strings passed to GrfMsg unless the message will be used.
...
This makes GrfMsg() behave more like Debug().
2024-07-10 12:53:23 +01:00
Peter Nelson
ba0acb87eb
Fix #12832 : Sanitise strings from NewGRF before logging them in Debug output.
...
NewGRF strings may not be UTF-8 encoded, which causes issues on Windows.
2024-07-10 12:53:23 +01:00
Peter Nelson
93eb27d8df
Codechange: Use reference for always_accepted output parameter of AddAcceptedCargo. ( #12854 )
...
This parameter should always present (see tile_cmd.h:186), so use a reference to ensure it is.
2024-07-10 12:30:14 +01:00
Peter Nelson
60c3913a99
Codechange: Use range-for and std::size with _plural_forms. ( #12852 )
...
This removes indexed array access and use of `lengthof()` macro.
2024-07-10 09:41:28 +00:00
J0anJosep
cc5fcd29e9
Doc: Changes in the landscape grid due to extended depots.
2024-07-09 21:10:13 +02:00
J0anJosep
56af97cb34
Change: This is a testing version, so make it difficult to load savegames with other versions of OpenTTD.
2024-07-09 21:10:13 +02:00
J0anJosep
158c46fcd6
Change: Buying and controlling road vehicles in extended road depots.
2024-07-09 21:10:13 +02:00
J0anJosep
861de832f6
Add: Hide stopped road vehicles in extended depots that block the path of another vehicle.
2024-07-09 21:10:13 +02:00
J0anJosep
d9b182df78
Codechange: Always return the first vehicle when looking for close road vehicles.
2024-07-09 21:10:13 +02:00
J0anJosep
c270cebb59
Change: Adapt pathfinders for extended road depots.
2024-07-09 21:10:13 +02:00
J0anJosep
718b92539a
Feature: Add construction of extended road depots.
2024-07-09 21:10:13 +02:00
J0anJosep
ec5f239a9a
Add: Add road depot platforms.
2024-07-09 21:07:51 +02:00
J0anJosep
a64aa22b67
Add: Set a darker background in depot window for trains that cannot leave a depot.
2024-07-09 21:07:51 +02:00
J0anJosep
328f0ab20e
Add: Set reservation and penalties to improve pathfinding in extended depots.
2024-07-09 21:07:51 +02:00
J0anJosep
e26d14c5ef
Change: Flood trains inside a train depot platform.
2024-07-09 21:07:51 +02:00
J0anJosep
c8dfc18380
Change: Deal with autoreplacements in extended rail depots.
...
As the autoreplace flag is set, only lift and tryplacing
in the original command for autoreplacing and not in any
recursive calls to move, buy, refit and sell commands.
# Conflicts:
# src/autoreplace_cmd.cpp
2024-07-09 21:07:51 +02:00
J0anJosep
a0f0ece384
Change: Add the DC_AUTOREPLACE flag in missing places.
2024-07-09 21:07:51 +02:00
J0anJosep
dfe6be59f4
Change: Check whether to stay in an extended rail depot or place the train and reverse if appropriate.
2024-07-09 21:07:51 +02:00
J0anJosep
0619cb633a
Add: Base files for placing trains in extended depots.
2024-07-09 21:07:51 +02:00
J0anJosep
0e34a5afe2
Add: Allow trains to reverse when leaving an extended depot.
2024-07-09 21:07:51 +02:00
J0anJosep
d4e89ad573
Change: Changes related with crashed trains in extended depots.
2024-07-09 21:07:51 +02:00
J0anJosep
12862b5df8
Change: Update signals for extended rail depots.
2024-07-09 21:07:51 +02:00
J0anJosep
fc5445d208
Add: Check length of platforms for servicing trains.
2024-07-09 21:07:51 +02:00
J0anJosep
b6946fb17f
Change: Adapt VehicleEnter_Track and handle trains entering extended depots.
...
# Conflicts:
# src/vehicle.cpp
2024-07-09 21:07:51 +02:00
Juanjo
2b259442f1
Add: Add a ShouldStopAtDepot function.
2024-07-09 21:07:51 +02:00
J0anJosep
421a533fbb
Change: Modify IsChainInDepot for ground vehicles.
2024-07-09 21:07:51 +02:00
J0anJosep
d489e22cfb
Add: Use track depot for detecting trains in depots.
2024-07-09 21:07:51 +02:00
Juanjo
ac55c2638c
Add: Add vehicle entered depot platform flag.
2024-07-09 21:07:51 +02:00
J0anJosep
419ca91e59
Add: Reservation and penalties for extended depots.
2024-07-09 21:07:51 +02:00
Juanjo
30a62aa2b5
Add: Add IsAnyDepotTileReserved.
2024-07-09 21:07:51 +02:00
J0anJosep
fe1b0f1204
Change: Rename end segment reason for general platforms.
2024-07-09 21:07:51 +02:00
J0anJosep
7ab28f6045
Add: Code dealing with extended rail depot platforms.
2024-07-09 21:07:51 +02:00
J0anJosep
4854685bec
Codechange: Move platform related code to separate files.
2024-07-09 21:07:51 +02:00
Juanjo
f161a138b9
Add: New depot direction picker for extended rail depots.
2024-07-09 21:07:51 +02:00
J0anJosep
394c5050b2
Feature: Allow building extended train depots and fix their sprites.
2024-07-09 21:07:51 +02:00
Juanjo
dbd895ee6a
Change: Transparent depots show all rail track.
2024-07-09 21:07:51 +02:00
Juanjo
8488abaf2f
Add: Add IsStandard and IsExtendedRailDepotTile map functions.
2024-07-09 21:07:51 +02:00
J0anJosep
2654cfeae7
Add: Add the widget for rail depots.
2024-07-09 21:07:51 +02:00