Only set TBTR replacement game event flag when replacement action occurs

This commit is contained in:
Jonathan G Rennison
2019-07-29 19:36:35 +01:00
parent 942dd35380
commit 162fcb050e
2 changed files with 2 additions and 2 deletions

View File

@@ -5446,6 +5446,8 @@ CommandCost CmdTemplateReplaceVehicle(TileIndex tile, DoCommandFlag flags, uint3
}
}
if (need_replacement || (need_refit && use_refit)) RegisterGameEvents(GEF_TBTR_REPLACEMENT);
/* define replacement behavior */
bool reuseDepot = tv->IsSetReuseDepotVehicles();
bool keepRemainders = tv->IsSetKeepRemainingVehicles();