Visual Studio refactoring

master
Vectozavr 2021-10-31 22:09:28 +07:00
parent d9bc57e131
commit 9b9aac7fa4
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ FireInformation Weapon::fire(std::function<IntersectionInformation(const Vec3D &
const Vec3D &position, const Vec3D &direction) {
if (_clipAmmo == 0) {
reload();
if (_clipAmmo == 0) {
if (_clipAmmo == 0 && SoundController::getStatus(SoundTag("noAmmo")) != sf::Sound::Status::Playing) {
SoundController::playSound(SoundTag("noAmmo"), ShooterConsts::NO_AMMO_SOUND);
}
}