From 8569d9f55a4a7d82d060b5b4f6fca90fd05da10b Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Sun, 5 May 2019 15:57:57 +0200 Subject: [PATCH] Put off doom fire after 3 seconds --- doom_fire.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doom_fire.lua b/doom_fire.lua index d75ebe2..41b1605 100644 --- a/doom_fire.lua +++ b/doom_fire.lua @@ -51,6 +51,13 @@ function TIC() dofire() end t=t+1 + + -- put off fire after 3 seconds + if t == 3*60 then + for i=width*(height-1),width*height do + base[i] = 0 + end + end end --