fix print search
This commit is contained in:
parent
2da9148e27
commit
d8e794f394
@ -19,7 +19,7 @@ local function getBit(gate, val)
|
|||||||
local v = gatedata.valReceived
|
local v = gatedata.valReceived
|
||||||
local iscolor = math.floor(v/256)==1 -- first bit
|
local iscolor = math.floor(v/256)==1 -- first bit
|
||||||
if iscolor then
|
if iscolor then
|
||||||
local printdomain = (math.floor(v/128)%2)==1 and "terminal" or "terminalInv" -- 8th lowest bit
|
local printdomain = (math.floor(v/128)%2)==1 and "terminalInv" or "terminal" -- 8th lowest bit
|
||||||
local colorid = v % 64 -- last 6 bits
|
local colorid = v % 64 -- last 6 bits
|
||||||
gatedata.printdomain = printdomain
|
gatedata.printdomain = printdomain
|
||||||
gatedata.colorid = colorid
|
gatedata.colorid = colorid
|
||||||
|
@ -208,7 +208,7 @@ function lualogic_defineprint(%name, %file) {
|
|||||||
%count = getNumPrintTextures();
|
%count = getNumPrintTextures();
|
||||||
%print = $LuaLogic::PrintsByFile[%file];
|
%print = $LuaLogic::PrintsByFile[%file];
|
||||||
if(%print $= "") { warn("LuaLogic_definePrint: No print named " @ %file @ " (" @ $LuaLogic::Print_Domain @ "." @ %name @ ")"); return; }
|
if(%print $= "") { warn("LuaLogic_definePrint: No print named " @ %file @ " (" @ $LuaLogic::Print_Domain @ "." @ %name @ ")"); return; }
|
||||||
$LuaLogic::Print[$LuaLogic::Print_Domain, %name] = %file;
|
$LuaLogic::Print[$LuaLogic::Print_Domain, %name] = %print;
|
||||||
}
|
}
|
||||||
|
|
||||||
function lualogic_isprint(%print, %domain) {
|
function lualogic_isprint(%print, %domain) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user