Keep projectile lifecycle out of player hit processing
This commit is contained in:
parent
46fc4fcb56
commit
de804d2529
@ -58,10 +58,6 @@ export const processQueuedPlayerHits = ({
|
||||
cooldownMs = PLAYER_HIT_COOLDOWN_MS,
|
||||
maxHull = PLAYER_MAX_HULL,
|
||||
}) => {
|
||||
for (const { shot } of hits) {
|
||||
if (shot?.active && typeof shot.destroy === 'function') shot.destroy();
|
||||
}
|
||||
|
||||
return reducePlayerHitQueue({
|
||||
hull,
|
||||
lastHitAt,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user