Correct for recursive iteration of multiple mines in succession clobbering filescope minehitlag

This commit is contained in:
toaster 2023-01-02 13:08:11 +00:00
parent 1f18aa727a
commit 4b9797fe26

View file

@ -324,6 +324,11 @@ tic_t K_MineExplodeAttack(mobj_t *actor, fixed_t size, boolean spin)
if (!spin)
{
if (minehitlag == 0)
{
minehitlag = actor->hitlag;
}
Obj_SpawnBrolyKi(actor, minehitlag);
return minehitlag;