diff options
author | frosch <frosch@openttd.org> | 2011-05-21 11:26:37 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-05-21 11:26:37 +0000 |
commit | 474b4799e8792d4b4bd00aee512327c682796d66 (patch) | |
tree | 9ea018b4860e4dcbd1e3f37421794ac56011247b /src/industry_cmd.cpp | |
parent | 2447efdefd6a52c7be8bbe3c5493dd36b0697804 (diff) | |
download | openttd-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.cpp | 2 |
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; |