diff --git a/plugins/Dfusion/luafiles/common.lua b/plugins/Dfusion/luafiles/common.lua index 42e1d9b8e..98043f463 100644 --- a/plugins/Dfusion/luafiles/common.lua +++ b/plugins/Dfusion/luafiles/common.lua @@ -3,6 +3,11 @@ STD_STRING=0 DWORD=1 WORD=2 BYTE=3 +function printd(...) + if DEBUG then + print(...) + end +end function GetTextRegion() if __TEXT ~=nil then --Chache this, not going to change. return __TEXT diff --git a/plugins/Dfusion/luafiles/patterns.lua b/plugins/Dfusion/luafiles/patterns.lua index 1d15741eb..c9f0e8c37 100644 --- a/plugins/Dfusion/luafiles/patterns.lua +++ b/plugins/Dfusion/luafiles/patterns.lua @@ -195,7 +195,7 @@ ptr_CrGloss.castes={off=296,rtype=ptr_vector} ptr_CrCaste={} ptr_CrCaste.name={off=0,rtype=ptt_dfstring} -ptr_CrCaste.flags_ptr={off=0x524,rtype=DWORD} --size 17? +ptr_CrCaste.flags_ptr={off=0x5A0,rtype=DWORD} --size 17? --[=[ Flags: 57 - is sentient (allows setting labours)