Fix changePos
This commit is contained in:
parent
1b1b46fa6d
commit
a668881fd8
@ -1498,7 +1498,7 @@ events.prototype._action_changeFloor = function (data, x, y, prefix) {
|
|||||||
|
|
||||||
events.prototype._action_changePos = function (data, x, y, prefix) {
|
events.prototype._action_changePos = function (data, x, y, prefix) {
|
||||||
core.clearMap('hero');
|
core.clearMap('hero');
|
||||||
if (data.x == null && data.y == null && data.direction) {
|
if (!data.loc && data.direction) {
|
||||||
core.setHeroLoc('direction', core.turnDirection(data.direction), true);
|
core.setHeroLoc('direction', core.turnDirection(data.direction), true);
|
||||||
core.drawHero();
|
core.drawHero();
|
||||||
return core.doAction();
|
return core.doAction();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user