1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 04:29:09 +00:00
Commit Graph

29591 Commits

Author SHA1 Message Date
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
J0anJosep
afcbba8d6b Add: Do not try to cross an extended depot that has a ship inside. 2024-07-09 21:07:51 +02:00
J0anJosep
275c141bf4 Change: Adapt commands for buying and replacing ships in extended depots. 2024-07-09 21:07:51 +02:00
J0anJosep
3364b1965b Add: Set reservation of extended ship depots and prepare for setting it for road and train depots. 2024-07-09 21:07:51 +02:00
J0anJosep
6f20beb49a Codechange: Reorder code in autoreplace vehicles. 2024-07-09 21:07:51 +02:00
J0anJosep
8a9a627577 Change: Adapt how ships enter and leave extended depots. 2024-07-09 21:07:51 +02:00
J0anJosep
3715dcf2d7 Feature: Show servicing vehicles in extended depots on viewport and on vehicle window. 2024-07-09 21:07:51 +02:00
J0anJosep
9869611ad8 Change: Ships enter depots when they are in the middle of the two depot tiles (not in the center of a tile).
# Conflicts:
#	src/ship_cmd.cpp
2024-07-09 21:07:51 +02:00
J0anJosep
e91483c588 Change: Get a better depot when close to destination tile of depots. 2024-07-09 21:07:51 +02:00
J0anJosep
01ac0e653f Feature: Allow building extended ship depots. 2024-07-09 21:07:51 +02:00
Juanjo
ea9ac51812 Change: Adapt GetVehicleTrackdir() for ships. 2024-07-09 21:07:51 +02:00
Juanjo
f713a3525d Change: Adapt IsInDepot() for ships. 2024-07-09 21:07:51 +02:00
Juanjo
037d8c6149 Add: Add two "tracks": depot and wormhole. 2024-07-09 21:07:51 +02:00
Juanjo
d5306c9e55 Add: Add a function to check if a window has a certain widget. 2024-07-09 21:07:51 +02:00
J0anJosep
ece7f8401f Change: Add a wait counter for all vehicle types. 2024-07-09 21:07:51 +02:00
J0anJosep
08f4ae4b3d Add: Add and adapt some functions for extended depots. 2024-07-09 21:07:51 +02:00
J0anJosep
2ddb3bf2d7 Add: Add settings for building new types of depots. 2024-07-09 21:07:51 +02:00
J0anJosep
408732d25b Feature: Road depots may have a road and tram type at the same time. 2024-07-09 21:07:51 +02:00