Commit 1ec8a262 authored by whenmo's avatar whenmo Committed by GitHub

fix SequenceToGlobal

parent eab611c8
...@@ -25,10 +25,7 @@ end ...@@ -25,10 +25,7 @@ end
---@param seq number 编号 ---@param seq number 编号
---@return number 卡片所在的zone ---@return number 卡片所在的zone
function VgF.SequenceToGlobal(p, loc, seq) function VgF.SequenceToGlobal(p, loc, seq)
if p ~= 0 or p ~= 1 or loc & 0xc ~= loc then if p ~= 0 or p ~= 1 or loc & 0xc ~= loc then return 0 end
Debug.Message("VgF.SequenceToGlobal param illegal")
return 0
end
if loc == LOCATION_MZONE and seq <= 6 then if loc == LOCATION_MZONE and seq <= 6 then
return 0x0001 << (seq) return 0x0001 << (seq)
elseif loc == LOCATION_SZONE and seq <= 4 then elseif loc == LOCATION_SZONE and seq <= 4 then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment