Skip to content

Commit

Permalink
gh
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Jul 28, 2024
1 parent 56a92f4 commit 8d9fc69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ foreach(MODULE ${MODULES_LIST})
endif()
endforeach()

CPMAddPackage("gh:EclipseMenu/RIFT#327c270") # specify a commit!
CPMAddPackage("gh:EclipseMenu/RIFT#b00bf2b") # specify a commit!

target_link_libraries(${PROJECT_NAME} rift)

Expand Down
13 changes: 5 additions & 8 deletions src/Labels/Labels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ void LabelPlayLayer::resetLevel()
PlayLayer::resetLevel();

m_fields->attemptCount++;

if (auto status = StatusNode::get())
{
status->totalClicks = 0;
}
}

bool LabelPlayLayer::init(GJGameLevel* p0, bool p1, bool p2)
Expand Down Expand Up @@ -242,14 +247,6 @@ class $modify (PlayerObject)
}
}*/
}

void resetLevel()
{
PlayLayer::resetLevel();

if (StatusNode::get())
StatusNode::get()->totalClicks = 0;
}
};

#endif

0 comments on commit 8d9fc69

Please sign in to comment.