From b5fe9f7c8db7ced11ad0e8647b8604b18fc69c2c Mon Sep 17 00:00:00 2001 From: Jamie Greunbaum Date: Sat, 26 Sep 2026 01:42:38 -0400 Subject: [PATCH] HurtboxBase now sends hit updates on a timer instead of on a new frame. --- src/liborng/nodes/hurtbox/hurtbox_base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/liborng/nodes/hurtbox/hurtbox_base.cpp b/src/liborng/nodes/hurtbox/hurtbox_base.cpp index 115ef19..e616038 100644 --- a/src/liborng/nodes/hurtbox/hurtbox_base.cpp +++ b/src/liborng/nodes/hurtbox/hurtbox_base.cpp @@ -52,7 +52,7 @@ void HurtboxBase::_ready() this->set_process(false); this->remaining_life = this->lifetime; - CALL_NEXT_FRAME(callable_mp(this, &HurtboxBase::_send_next_in_queue)); + this->_send_next_in_queue(); } void HurtboxBase::_physics_process(double delta) @@ -146,6 +146,6 @@ void HurtboxBase::_send_next_in_queue() } else { - CALL_NEXT_FRAME(callable_mp(this, &HurtboxBase::_send_next_in_queue)); + CALL_ON_TIMEOUT(1.0f / 8.0f, callable_mp(this, &HurtboxBase::_send_next_in_queue)); } }