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 | af5c2a785f11cc6c56813285fe0d1b09369b0acb (patch) | |
tree | f9e7187a01ac304ba4976cb42e34a137f6511115 /src/economy.cpp | |
parent | f6dda295496e642a04f212e8aa41cdfdf74a347d (diff) | |
download | openttd-af5c2a785f11cc6c56813285fe0d1b09369b0acb.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); } } |