mania: slightly accounted for calculating on osu!standard maps

This commit is contained in:
MaxOhn
2021-02-03 11:27:12 +01:00
parent 829682e9ee
commit e43b824062
3 changed files with 29 additions and 6 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
use crate::Pos2;
const PLAYFIELD_WIDHT: f32 = 512.0;
const PLAYFIELD_WIDTH: f32 = 512.0;
const BASE_SPEED: f32 = 1.0;
#[derive(Clone)]
@@ -33,7 +33,7 @@ impl CatchObject {
if pos_diff.abs() > f32::EPSILON {
if pos_diff.abs() < (time_diff / 3.0).floor() {
if pos_diff > 0.0 {
if offset_pos + pos_diff < PLAYFIELD_WIDHT {
if offset_pos + pos_diff < PLAYFIELD_WIDTH {
offset_pos += pos_diff;
}
} else if offset_pos + pos_diff > 0.0 {