mirror of https://github.com/OpenTTD/OpenTTD
(svn r24704) -Cleanup: No need to initialise stuff twice.
parent
e6459a91dd
commit
a2980378ff
|
@ -3529,14 +3529,6 @@ void BuildOilRig(TileIndex tile)
|
|||
|
||||
st->rect.BeforeAddTile(tile, StationRect::ADD_FORCE);
|
||||
|
||||
for (CargoID j = 0; j < NUM_CARGO; j++) {
|
||||
st->goods[j].acceptance_pickup = 0;
|
||||
st->goods[j].days_since_pickup = 255;
|
||||
st->goods[j].rating = INITIAL_STATION_RATING;
|
||||
st->goods[j].last_speed = 0;
|
||||
st->goods[j].last_age = 255;
|
||||
}
|
||||
|
||||
st->UpdateVirtCoord();
|
||||
UpdateStationAcceptance(st, false);
|
||||
st->RecomputeIndustriesNear();
|
||||
|
|
Loading…
Reference in New Issue