修复多处全局变量泄露,整理代码

This commit is contained in:
MrZ626
2021-04-25 15:20:48 +08:00
parent 4f278925f4
commit 3d02bc87ea
6 changed files with 13 additions and 11 deletions

View File

@@ -194,6 +194,7 @@ local baseRankColor={
{.85,.8,.3,.3},
{.4,.7,.4,.3},
}
local rankColor=rankColor
local function drawModeShape(M,S,drawType)
if M.shape==1 then--Rectangle
gc.rectangle(drawType,M.x-S,M.y-S,2*S,2*S)