diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-07 20:04:15 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-07 20:04:15 +1000 |
commit | cef3b8421938589dc991e0976123fc6bd437146b (patch) | |
tree | 121da2bb449dffbfce6335b1f25ee9a73ceacdab /crawl-ref/source/dat/clua | |
parent | ef68100a9c4b18e9dd8b77413d3408b64f756f91 (diff) | |
download | crawl-ref-cef3b8421938589dc991e0976123fc6bd437146b.tar.gz crawl-ref-cef3b8421938589dc991e0976123fc6bd437146b.zip |
Add check to stop tw_machine from firing constantly.
Diffstat (limited to 'crawl-ref/source/dat/clua')
-rw-r--r-- | crawl-ref/source/dat/clua/lm_fog.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dat/clua/lm_fog.lua b/crawl-ref/source/dat/clua/lm_fog.lua index e02be91c31..00a64f0973 100644 --- a/crawl-ref/source/dat/clua/lm_fog.lua +++ b/crawl-ref/source/dat/clua/lm_fog.lua @@ -403,7 +403,7 @@ function tw_machine (warn_turns, warn_cantsee_message, end self.warning_done = true end - elseif triggerer.type == "turn" then + elseif triggerer.type == "turn" and triggerer.sub_type == "countdown" then self.warning_done = false channel = self.trigger_channel or "" if self.trigger_see_message and self.see_function(point.x, point.y) then |