Fix dead critters reload weapons when combat ends

This commit is contained in:
Alexander Batalov 2022-08-06 20:12:23 +03:00
parent d7966cdab2
commit 43ad927817
1 changed files with 4 additions and 1 deletions

View File

@ -2665,7 +2665,10 @@ static void _combat_over()
for (int index = 0; index < _list_com; index++) { for (int index = 0; index < _list_com; index++) {
Object* critter = _combat_list[index]; Object* critter = _combat_list[index];
if (critter != gDude) { if (critter != gDude) {
_cai_attempt_w_reload(critter, 0); // SFALL: Fix to prevent dead NPCs from reloading their weapons.
if ((critter->data.critter.combat.results & DAM_DEAD) == 0) {
_cai_attempt_w_reload(critter, 0);
}
} }
} }
} }