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

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnut committed Feb 11, 2024
1 parent a04ad45 commit 8d71b8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"gd": {
"win": "2.204"
},
"version": "v2.4.7",
"version": "v2.4.8",
"id": "maxnu.gd_mega_overlay",
"name": "GD Mega Overlay",
"developer": "maxnu & SpaghettDev",
Expand Down
7 changes: 5 additions & 2 deletions src/Hacks/ShowHitboxes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ void GJBaseGameLayerProcessCommands(GJBaseGameLayer* self)

bool show = Settings::get<bool>("level/show_hitbox/enabled", false);
bool trail = Settings::get<bool>("level/show_hitbox/queue_enabled", false);
bool onDeath = Settings::get<bool>("level/show_hitbox/on_death", false);

if(!show || !trail)
if(!show || !trail || onDeath)
return;

bool isDual = MBO(bool, self, 878);
Expand Down Expand Up @@ -149,10 +150,12 @@ class $modify(CCDrawNode)
bool drawPolygon(CCPoint *verts, unsigned int count, const ccColor4F &colFill, float borderWidth, const ccColor4F& colBase)
{
ccColor4F colBaseNew = colBase;
ccColor4F colFillNew = colBase;
ccColor4F colFillNew = colFill;

if(ShowHitboxes::debugDrawing)
{
colBaseNew = colBase;
colFillNew = colBase;
borderWidth = Settings::get<float>("level/show_hitbox/size", 0.25f);
colBaseNew.a = Settings::get<int>("level/show_hitbox/border_alpha", 255) / 255.f;
colFillNew.a = Settings::get<int>("level/show_hitbox/fill_alpha", 50) / 255.f;
Expand Down

0 comments on commit 8d71b8d

Please sign in to comment.