Fix dead critters reload weapons when combat ends
This commit is contained in:
parent
d7966cdab2
commit
43ad927817
|
@ -2665,10 +2665,13 @@ 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) {
|
||||||
|
// 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);
|
_cai_attempt_w_reload(critter, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tickersAdd(_dude_fidget);
|
tickersAdd(_dude_fidget);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue