1
This commit is contained in:
parent
51beedc634
commit
774add572d
@ -2639,9 +2639,14 @@ void Creature::AutoSwitchWeapon()
|
||||
*c->GetCurrWeapon() = Weapon();
|
||||
c->GetCurrWeapon()->weapon_idx = weapon_idx;
|
||||
Weapon* next_weapon = c->ChooseNextSpecWeapon(slot_id);
|
||||
if (!next_weapon) {
|
||||
next_weapon = c->AutoChgWeapon();
|
||||
}
|
||||
if (next_weapon) {
|
||||
c->SetCurrWeapon(next_weapon);
|
||||
switch_ok = true;
|
||||
} else {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user