TBTR: Fix head state migration when using start/stop callbacks

Don't run start/stop callbacks during head state migration
This commit is contained in:
Jonathan G Rennison
2024-03-29 16:20:54 +00:00
parent 3439d208d7
commit 9f7d25e02d
3 changed files with 7 additions and 6 deletions

View File

@@ -97,7 +97,7 @@ inline CommandCost RemoveEngineReplacementForCompany(Company *c, EngineID engine
bool CheckAutoreplaceValidity(EngineID from, EngineID to, CompanyID company);
CommandCost CopyHeadSpecificThings(Vehicle*, Vehicle*, DoCommandFlag);
CommandCost CopyHeadSpecificThings(Vehicle*, Vehicle*, DoCommandFlag, bool start_stop_check);
bool AutoreplaceMultiPartShipWouldSucceed(EngineID e, const Vehicle *old_veh, CargoTypes all_cargoes);