Fix changePos
This commit is contained in:
parent
c6ea15e807
commit
43ce2de804
@ -1488,7 +1488,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