fix drawHero in gameOver

This commit is contained in:
oc 2019-03-28 01:26:59 +08:00
parent dd48678d2d
commit 2b0de5127d

View File

@ -795,7 +795,7 @@ control.prototype.tryMoveDirectly = function (destX, destY) {
////// 绘制勇士 //////
control.prototype.drawHero = function (status, offset) {
if (!core.isPlaying() || !core.status.floorId) return;
if (!core.isPlaying() || !core.status.floorId || core.status.gameOver) return;
var x = core.getHeroLoc('x'), y = core.getHeroLoc('y'), direction = core.getHeroLoc('direction');
status = status || 'stop';
offset = offset || 0;