1
This commit is contained in:
parent
2800019563
commit
75e494b0f7
@ -175,13 +175,16 @@ void Player::UpdateSelectWeapon()
|
||||
return;
|
||||
}
|
||||
if (selected_weapon_idx >= 0 && selected_weapon_idx < weapons.size()) {
|
||||
Weapon* old_weapon = curr_weapon;
|
||||
Weapon* weapon = &weapons[selected_weapon_idx];
|
||||
if (weapon->weapon_id != 0) {
|
||||
curr_weapon = weapon;
|
||||
ResetAction();
|
||||
need_sync_active_player = true;
|
||||
SyncAroundPlayers();
|
||||
AutoLoadingBullet();
|
||||
if (old_weapon != weapon) {
|
||||
AutoLoadingBullet();
|
||||
}
|
||||
}
|
||||
}
|
||||
select_weapon = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user