修正当前方块显示条件

This commit is contained in:
MrZ626
2021-11-25 09:57:45 +08:00
parent ef12ab0cee
commit 1a689a5f07

View File

@@ -782,7 +782,7 @@ function draw.norm(P,repMode)
_drawFXs(P)
--Draw current block
if P.cur then
if P.alive and P.cur then
local C=P.cur
local curColor=C.color
@@ -996,7 +996,7 @@ function draw.demo(P)
gc_translate(0,600)
_drawField(P)
_drawFXs(P)
if P.cur then
if P.alive and P.cur then
local curColor=P.cur.color
if ENV.ghost then
drawGhost[ENV.ghostType](P.cur.bk,P.curX,P.ghoY,ENV.ghost,P.skinLib,curColor)