1
0
Fork 0

Fix #13140: Scale initial industry production estimate by cargo scale (#13427)

pull/13436/head
Tyler Trahan 2025-02-01 14:08:49 -05:00 committed by GitHub
parent b6a092f3e0
commit 2d5565129a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1838,7 +1838,7 @@ static void DoCreateNewIndustry(Industry *i, TileIndex tile, IndustryType type,
if (indspec->callback_mask.Test(IndustryCallbackMask::Production256Ticks)) { if (indspec->callback_mask.Test(IndustryCallbackMask::Production256Ticks)) {
IndustryProductionCallback(i, 1); IndustryProductionCallback(i, 1);
for (auto &p : i->produced) { for (auto &p : i->produced) {
p.history[LAST_MONTH].production = p.waiting * 8; p.history[LAST_MONTH].production = ScaleByCargoScale(p.waiting * 8, false);
p.waiting = 0; p.waiting = 0;
} }
} }