From 3a4c72c069869bd4a46f13a4356e8827d0aeec91 Mon Sep 17 00:00:00 2001 From: ASleepyCat Date: Tue, 27 Apr 2021 23:23:46 +1000 Subject: [PATCH] Fix key beams not appearing when delay fade effects are off and a chip object has passed the crit line --- Main/src/Scoring.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Main/src/Scoring.cpp b/Main/src/Scoring.cpp index fd52b9c57..9a91c879b 100755 --- a/Main/src/Scoring.cpp +++ b/Main/src/Scoring.cpp @@ -1429,6 +1429,8 @@ bool Scoring::HoldObjectAvailable(uint32 index, bool checkIfPassedCritLine) auto currentTime = m_playback->GetLastTime(); auto tick = m_ticks[index].front(); auto obj = (HoldObjectState*)tick->object; + if (obj->type != ObjectType::Hold) + return false; // When a hold passes the crit line and we're eligible to hit the starting tick, // change the idle hit effect to the crit hit effect bool withinHoldStartWindow = tick->HasFlag(TickFlags::Start) && m_IsBeingHold(tick) && (!checkIfPassedCritLine || obj->time <= currentTime);