summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-21 11:26:37 +0000
committerfrosch <frosch@openttd.org>2011-05-21 11:26:37 +0000
commit474b4799e8792d4b4bd00aee512327c682796d66 (patch)
tree9ea018b4860e4dcbd1e3f37421794ac56011247b /src/industry_cmd.cpp
parent2447efdefd6a52c7be8bbe3c5493dd36b0697804 (diff)
downloadopenttd-474b4799e8792d4b4bd00aee512327c682796d66.tar.xz
(svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks.
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;