diff --git a/Beatmap/include/Beatmap/BeatmapPlayback.hpp b/Beatmap/include/Beatmap/BeatmapPlayback.hpp index 5bbd62ba5..158c1da79 100644 --- a/Beatmap/include/Beatmap/BeatmapPlayback.hpp +++ b/Beatmap/include/Beatmap/BeatmapPlayback.hpp @@ -77,7 +77,7 @@ class BeatmapPlayback return GetViewDistanceIgnoringScrollSpeed(startTime, startTime + duration); } - /// Get # of (4th) beats between `startTime` and `endTime`, taking scroll speed changes into account. + /// Get # of (4th) beats between `startTime` and `endTime`, taking scroll speed changes into account (if CMOD is not used). float GetViewDistance(MapTime startTime, MapTime endTime) const; /// Get # of (4th) beats between `startTime` and `endTime`, ignoring any scroll speed changes. diff --git a/Beatmap/src/BeatmapPlayback.cpp b/Beatmap/src/BeatmapPlayback.cpp index 112f132e9..587a65484 100644 --- a/Beatmap/src/BeatmapPlayback.cpp +++ b/Beatmap/src/BeatmapPlayback.cpp @@ -366,14 +366,14 @@ void BeatmapPlayback::GetObjectsInViewRange(float numBeats, Vector if (!IsEndTiming(tp_next) && tp_next->time <= objTime) { - currBeats += m_beatmap->GetBeatCountWithScrollSpeedApplied(currRefTime, tp_next->time, tp); + currBeats += GetViewDistance(currRefTime, tp_next->time); tp = tp_next; tp_next = std::next(tp_next); currRefTime = tp->time; } - const float objBeats = currBeats + m_beatmap->GetBeatCountWithScrollSpeedApplied(currRefTime, objTime, tp); + const float objBeats = currBeats + GetViewDistance(currRefTime, objTime); if (objBeats >= numBeats) { break; diff --git a/Main/src/Game.cpp b/Main/src/Game.cpp index c00419c8e..f82fdc17e 100755 --- a/Main/src/Game.cpp +++ b/Main/src/Game.cpp @@ -1909,7 +1909,7 @@ class Game_Impl : public Game // Camera and rendering info { const float viewRange = m_track ? m_track->GetViewRange() : -1.0f; - textPos.y += RenderText(Utility::Sprintf("SpeedMod: hi=%.3f mod=%.3f | ViewRange: %.4f", m_hispeed, m_modSpeed, viewRange), textPos).y; + textPos.y += RenderText(Utility::Sprintf("SpeedMod: %s hi=%.3f mod=%.3f | ViewRange: %.4f", Enum_SpeedMods::ToString(m_speedMod), m_hispeed, m_modSpeed, viewRange), textPos).y; if (m_track) {