Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Jul 28, 2024
1 parent 754a64e commit d9b0d94
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
- Fixed Crash removing checkpoints with checkpoint limit bypass enabled (thanks @hiimjustin000)
- Actually fixed not being able to exit practice mode with Comfirm Practice enabled
- Fixed not being able to scroll in the qolmod popup
- Fixed dying in noclip breaking the cps counter
- FINALLY fixed the touch issues with popups
- Added **No Dash Fire**

# 1.5.1
Expand Down
11 changes: 7 additions & 4 deletions src/Labels/Labels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,15 @@ void StatusNode::update(float dt)
}
}

for (size_t i = 0; i < cps.size(); i++)
if (dt != -1)
{
cps[i] -= dt / CCScheduler::get()->getTimeScale();
}
for (size_t i = 0; i < cps.size(); i++)
{
cps[i] -= dt / CCScheduler::get()->getTimeScale();
}

cps.erase(std::remove_if(cps.begin(), cps.end(), [](float i){ return i < 0; }), cps.end());
cps.erase(std::remove_if(cps.begin(), cps.end(), [](float i){ return i < 0; }), cps.end());
}

sLabels[8]->setString((cpsM->options[1]->enabled ? fmt::format("{} / {} CPS", cps.size(), totalClicks) : fmt::format("{} CPS", cps.size(), totalClicks)).c_str());

Expand Down
4 changes: 2 additions & 2 deletions src/Layers/SillyBaseLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bool SillyBaseLayer::setup()

this->runAction(CCFadeTo::create(1, 100));
this->setKeypadEnabled(true);
this->setTouchEnabled(false);
this->setTouchEnabled(true);

auto l = CCMenu::create();
l->setContentSize(size);
Expand Down Expand Up @@ -140,7 +140,7 @@ bool SillyBaseLayer::initWithSizeAndName(CCPoint size, std::string _title, bool

bool SillyBaseLayer::ccTouchBegan(cocos2d::CCTouch* p0, cocos2d::CCEvent* p1)
{
return false;
return true;
}

void SillyBaseLayer::ccTouchMoved(cocos2d::CCTouch* p0, cocos2d::CCEvent* p1)
Expand Down

0 comments on commit d9b0d94

Please sign in to comment.