summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/industry_cmd.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index a4863ab12..403e57a96 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1751,8 +1751,16 @@ static void DoCreateNewIndustry(Industry *i, TileIndex tile, IndustryType type,
}
if (_generating_world) {
+ if (HasBit(indspec->callback_mask, CBM_IND_PRODUCTION_256_TICKS)) {
+ IndustryProductionCallback(i, 1);
+ for (size_t ci = 0; ci < lengthof(i->last_month_production); ci++) {
+ i->last_month_production[ci] = i->produced_cargo_waiting[ci] * 8;
+ i->produced_cargo_waiting[ci] = 0;
+ }
+ }
+
for (size_t ci = 0; ci < lengthof(i->last_month_production); ci++) {
- i->last_month_production[ci] = i->production_rate[ci] * 8;
+ i->last_month_production[ci] += i->production_rate[ci] * 8;
}
}