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

@@ -7446,7 +7446,7 @@ CommandCost CmdTemplateReplaceVehicle(TileIndex tile, DoCommandFlag flags, uint3
// If we bought a new engine or reused one from the depot, copy some parameters from the incoming primary engine
if (incoming != new_chain) {
CopyHeadSpecificThings(incoming, new_chain, flags);
CopyHeadSpecificThings(incoming, new_chain, flags, false);
NeutralizeStatus(incoming);
// additionally, if we don't want to use the template refit, refit as incoming