Skip to content

Commit 003c188

Browse files
Fixed object placement being annoying in fullscreen
I guess I just used the wrong value
1 parent fc70817 commit 003c188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ async fn main() {
747747
let snapped_cam_x = cam_pos_x as i32;
748748
let snapped_cam_y = cam_pos_y as i32;
749749
let snapped_x = ((mouse_x + (snapped_cam_x * 5)) / grid_size as i32) * grid_size as i32;
750-
let screen_height_range = (screen_height() - 600.0) * (40.0 / (1005.0 - 600.0));
750+
let screen_height_range = (screen_height() - 600.0) * (60.0 / (1005.0 - 600.0));
751751
let snapped_y_bugged = (((mouse_y - (snapped_cam_y * 5)) - (screen_height() - (600.0 + screen_height_range)) as i32) / grid_size as i32) * grid_size as i32;
752752
let snapped_y: i32 = snapped_y_bugged - if snapped_y_bugged <= -40 { 40 } else { 0 };
753753

0 commit comments

Comments
 (0)