Skip to content

Commit

Permalink
fix endscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
theyareonit committed Oct 1, 2024
1 parent 327c3fd commit e4ee80c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ class $modify(CCEGLView) {
|| !GetFocus() // not in foreground
|| !playLayer
|| !(par = playLayer->getParent())
|| (getChildOfType<PauseLayer>(par, 0) != nullptr))
|| (getChildOfType<PauseLayer>(par, 0))
|| (getChildOfType<EndLevelLayer>(playLayer, 0)))
{
firstFrame = true;
skipUpdate = true;
Expand All @@ -225,7 +226,7 @@ class $modify(CCEGLView) {
inputQueue = {};
}
}
else if (playLayer && mouseFix) {
else if (mouseFix) {
MSG msg;
while (PeekMessage(&msg, NULL, WM_MOUSEFIRST, WM_MOUSELAST, PM_REMOVE)); // clear mouse inputs from message queue
}
Expand Down

0 comments on commit e4ee80c

Please sign in to comment.