pointify board.rs

This commit is contained in:
2026-08-10 22:57:54 -05:00
parent a8444b25ad
commit 3b5bf21ac5
4 changed files with 156 additions and 217 deletions
+2 -2
View File
@@ -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);