Skip to content

Commit f73dc6d

Browse files
committed
lag fix
1 parent 0119a31 commit f73dc6d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Fixed minor UI issues
44
- Added warning when using shortcuts with textureldr installed
55
- Fixed Hitboxes disappearing when using show hitboxes on death death object only
6+
- Fixed lag using show hitboxes on death death object only
67

78
# 2.5.2
89

src/Hacks/Level/Hitboxes/Hooks.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ class $modify (HitboxBaseGameLayer, GJBaseGameLayer)
112112
{
113113
if (obj == reinterpret_cast<NoclipBaseGameLayer*>(this)->getDeathObject())
114114
continue;
115+
116+
if (!obj->getParent() || obj->isVisible())
117+
continue;
115118

116119
hitboxes.emplace(obj, std::make_pair(obj->m_scaleX, obj->m_scaleY));
117120
obj->m_scaleX = 0;

0 commit comments

Comments
 (0)