Skip to content

Commit 2f9cb4f

Browse files
committed
tweaked get_distance and move_forward_to_wall
1 parent 8cac2e8 commit 2f9cb4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bundles/robot_minigame/functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ const SAFE_DISTANCE_FROM_WALL : number = 10;
339339
*/
340340
export function move_forward_to_wall() {
341341
// Move forward the furthest possible safe distance + a lil extra offset
342-
move_forward(Math.max(get_distance() - robot.radius - SAFE_DISTANCE_FROM_WALL, 0));
342+
move_forward(Math.max(get_distance() - SAFE_DISTANCE_FROM_WALL, 0));
343343
}
344344

345345
/**

0 commit comments

Comments
 (0)