(svn r22482) -Codechange: Add some contants for the number of ticks between certain cyclical tasks.

This commit is contained in:
frosch
2011-05-21 11:26:37 +00:00
parent 2447efdefd
commit 474b4799e8
7 changed files with 15 additions and 15 deletions

View File

@@ -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;