1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-22 05:59:10 +00:00

(svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace

this is a complete rewrite, that makes use of existing commands like build and sell
        this means that multiheaded train engines are replaced correctly
This commit is contained in:
bjarni
2005-10-24 19:40:48 +00:00
parent e0dd7efc82
commit bf467bd99c
9 changed files with 258 additions and 304 deletions

View File

@@ -414,7 +414,7 @@ static void ShipEnterDepot(Vehicle *v)
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
MaybeReplaceVehicle(v);
v = MaybeReplaceVehicle(v);
TriggerVehicle(v, VEHICLE_TRIGGER_DEPOT);