Keep projectile lifecycle out of player hit processing

This commit is contained in:
Admin 2026-09-18 00:52:13 +00:00
parent 46fc4fcb56
commit de804d2529

View File

@ -58,10 +58,6 @@ export const processQueuedPlayerHits = ({
cooldownMs = PLAYER_HIT_COOLDOWN_MS, cooldownMs = PLAYER_HIT_COOLDOWN_MS,
maxHull = PLAYER_MAX_HULL, maxHull = PLAYER_MAX_HULL,
}) => { }) => {
for (const { shot } of hits) {
if (shot?.active && typeof shot.destroy === 'function') shot.destroy();
}
return reducePlayerHitQueue({ return reducePlayerHitQueue({
hull, hull,
lastHitAt, lastHitAt,