Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
mishpro-programm committed Mar 28, 2024
1 parent 2e7bd8f commit 405226c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,8 @@ class $modify(FixedPlayLayer, PlayLayer) {
class $modify(MyCCLayer, CCLayer){
void onEnter(){
if(reinterpret_cast<void*>(PlayLayer::get()) == reinterpret_cast<void*>(this)){
Loader::get()->queueInMainThread([self = Ref(this)] {
auto pl = reinterpret_cast<FixedPlayLayer*>(static_cast<CCLayer*>(self));
if(pl->isPaused()){
pl->onEnterH();
} else {
self->CCLayer::onEnter();
}
});
pl->onEnterH();
} else {
CCLayer::onEnter();
}
Expand Down

0 comments on commit 405226c

Please sign in to comment.