From: Perttu Ahola Date: Sat, 26 Nov 2011 10:47:31 +0000 (+0200) Subject: Fix TNT script X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=b58dc083a98ee6c7668c8ec598034dc8a8a34db9;p=zefram%2Fminetest%2Fminetest_engine.git Fix TNT script --- diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index b9af94be..88f457e2 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -1195,12 +1195,12 @@ function TNT:on_step(dtime) self.blinktimer = self.blinktimer + dtime if self.blinktimer > 0.5 then self.blinktimer = self.blinktimer - 0.5 - if blinkstatus then + if self.blinkstatus then self.object:settexturemod("") else self.object:settexturemod("^[brighten") end - blinkstatus = not blinkstatus + self.blinkstatus = not self.blinkstatus end end