(svn r17084) -Codechange: _age_cargo_skip_counter is common to all vehicle types

This commit is contained in:
smatz
2009-08-06 12:33:13 +00:00
parent 45ba549cda
commit 4a39f236fa
6 changed files with 6 additions and 18 deletions

View File

@@ -2292,12 +2292,6 @@ CommandCost CmdSendTrainToDepot(TileIndex tile, DoCommandFlag flags, uint32 p1,
return v->SendToDepot(flags, (DepotCommand)(p2 & DEPOT_COMMAND_MASK));
}
void OnTick_Train()
{
_age_cargo_skip_counter = (_age_cargo_skip_counter == 0) ? 184 : (_age_cargo_skip_counter - 1);
}
static const int8 _vehicle_smoke_pos[8] = {
1, 1, 1, 0, -1, -1, -1, 0
};
@@ -4602,8 +4596,3 @@ Trackdir Train::GetVehicleTrackdir() const
return TrackDirectionToTrackdir(FindFirstTrack(this->track), this->direction);
}
void InitializeTrains()
{
_age_cargo_skip_counter = 1;
}