summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 84b9ef931..dde262085 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1068,7 +1068,7 @@ static void ProduceIndustryGoods(Industry *i)
i->counter--;
/* produce some cargo */
- if ((i->counter & 0xFF) == 0) {
+ if ((i->counter % INDUSTRY_PRODUCE_TICKS) == 0) {
if (HasBit(indsp->callback_mask, CBM_IND_PRODUCTION_256_TICKS)) IndustryProductionCallback(i, 1);
IndustryBehaviour indbehav = indsp->behaviour;