pointify board.rs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::action::{apply_push, apply_shift, apply_teleport, Action, BoardAction, SendArg};
|
||||
use crate::action::{apply_shift, apply_teleport, Action, BoardAction, SendArg};
|
||||
use crate::board::Board;
|
||||
use crate::log::LogLine;
|
||||
use crate::script::ScriptHost;
|
||||
@@ -540,7 +540,7 @@ fn step_object(board: &mut Board, id: ObjectId, dir: Direction) {
|
||||
|
||||
if solid {
|
||||
// This is a real object on the board, try and push it
|
||||
board.move_object(loc.0, loc.1, dir);
|
||||
board.move_object((loc.0, loc.1), dir);
|
||||
} else {
|
||||
// This is a sensor, we can just teleport it
|
||||
board.move_sensor(id, dir);
|
||||
|
||||
Reference in New Issue
Block a user