Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
fix custom wave trail for standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter committed Apr 28, 2024
1 parent 10e450f commit 5fc8e49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libs/gd.hpp
12 changes: 7 additions & 5 deletions src/shared/hacks/custom-wave-trail/custom-wave-trail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ namespace openhack::hacks {
changeColor = true;
}

reinterpret_cast<cocos2d::CCDrawNode *>(streak)->setColor({
static_cast<uint8_t>(target.r * 255),
static_cast<uint8_t>(target.g * 255),
static_cast<uint8_t>(target.b * 255)
});
if (changeColor) {
reinterpret_cast<cocos2d::CCDrawNode *>(streak)->setColor({
static_cast<uint8_t>(target.r * 255),
static_cast<uint8_t>(target.g * 255),
static_cast<uint8_t>(target.b * 255)
});
}

auto scale = config::get<float>("hack.custom_wave_trail.scale");
streak->m_pulseSize() = scale;
Expand Down

0 comments on commit 5fc8e49

Please sign in to comment.