Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pos = cell.unit.move.pop();
- var cellTmp = this.units_map[pos.x][pos.y];
- cellTmp.unit = cell.unit;
- cell.unit.cell = cell;
- cell.unit = null;
- cellTmp.unit.recalcMoves();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement