Change mesecons signals so that they update effectors only after a globalstep, configurable to be on/off

This commit is contained in:
Novatux
2013-06-05 06:40:53 +02:00
committed by Anthony Zhang
parent 9a9df6cabf
commit afad592783
5 changed files with 150 additions and 14 deletions

View File

@ -682,6 +682,7 @@ end
--end
function yc_overheat(meta)
if MESECONS_GLOBALSTEP then return false end
h = meta:get_int("heat")
if h == nil then return true end -- if nil the overheat
if h>60 then