diff options
author | rubidium <rubidium@openttd.org> | 2007-11-11 17:56:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-11 17:56:37 +0000 |
commit | c1cf9f33964e5e552e7892abd612027acd07ad12 (patch) | |
tree | f9e7187a01ac304ba4976cb42e34a137f6511115 /src/economy.cpp | |
parent | dd6ef7ad49940f1da353e52afeb2ae2e110d6b78 (diff) | |
download | openttd-c1cf9f33964e5e552e7892abd612027acd07ad12.tar.xz |
(svn r11410) -Codechange: implement random triggers for industries.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 216622c6c..ab9d21951 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1256,6 +1256,7 @@ static void DeliverGoodsToIndustry(TileIndex xy, CargoID cargo_type, int num_pie best->produced_cargo_waiting[1] = min(best->produced_cargo_waiting[1] + (num_pieces * indspec->input_cargo_multiplier[accepted_cargo_index][1] / 256), 0xFFFF); } + TriggerIndustry(best, INDUSTRY_TRIGGER_RECEIVED_CARGO); StartStopIndustryTileAnimation(best, IAT_INDUSTRY_RECEIVED_CARGO); } } |