summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-12 18:10:02 +0000
committerfrosch <frosch@openttd.org>2012-11-12 18:10:02 +0000
commita2980378ff7666cce6804fb392321a7314f4684d (patch)
treecf39bfaec9de350fc6d74fa726991eaff511a446 /src
parente6459a91dde92bbaa0ccdfa7a318a91c2164a844 (diff)
downloadopenttd-a2980378ff7666cce6804fb392321a7314f4684d.tar.xz
(svn r24704) -Cleanup: No need to initialise stuff twice.
Diffstat (limited to 'src')
-rw-r--r--src/station_cmd.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 7cb577767..263bf49c0 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -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();