We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc70817 commit 003c188Copy full SHA for 003c188
src/main.rs
@@ -747,7 +747,7 @@ async fn main() {
747
let snapped_cam_x = cam_pos_x as i32;
748
let snapped_cam_y = cam_pos_y as i32;
749
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));
+ let screen_height_range = (screen_height() - 600.0) * (60.0 / (1005.0 - 600.0));
751
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;
752
let snapped_y: i32 = snapped_y_bugged - if snapped_y_bugged <= -40 { 40 } else { 0 };
753
0 commit comments