diff options
| author | untodesu <kirill@untode.su> | 2025-07-01 03:23:05 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-07-01 03:23:05 +0500 |
| commit | 6dc5194895b6bd61d19bf5c95021471784084325 (patch) | |
| tree | 705c35b3a671a09fc52b406dca81e7761729ded6 /game/client/sound/sound.cc | |
| parent | 44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff) | |
| download | voxelius-6dc5194895b6bd61d19bf5c95021471784084325.tar.bz2 voxelius-6dc5194895b6bd61d19bf5c95021471784084325.zip | |
I forgot to set these to true in .clang-format
https://files.catbox.moe/909rig.gif
Diffstat (limited to 'game/client/sound/sound.cc')
| -rw-r--r-- | game/client/sound/sound.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/game/client/sound/sound.cc b/game/client/sound/sound.cc index fa3cd19..f3bd5e2 100644 --- a/game/client/sound/sound.cc +++ b/game/client/sound/sound.cc @@ -99,7 +99,8 @@ void sound::play_generic(const char* sound, bool looping, float pitch) { if(sound) { sound::play_generic(resource::load<SoundEffect>(sound), looping, pitch); - } else { + } + else { sound::play_generic(static_cast<const char*>(nullptr), looping, pitch); } } @@ -108,7 +109,8 @@ void sound::play_entity(entt::entity entity, const char* sound, bool looping, fl { if(sound) { sound::play_entity(entity, resource::load<SoundEffect>(sound), looping, pitch); - } else { + } + else { sound::play_entity(entity, static_cast<const char*>(nullptr), looping, pitch); } } @@ -117,7 +119,8 @@ void sound::play_player(const char* sound, bool looping, float pitch) { if(sound) { sound::play_player(resource::load<SoundEffect>(sound), looping, pitch); - } else { + } + else { sound::play_player(static_cast<const char*>(nullptr), looping, pitch); } } @@ -126,7 +129,8 @@ void sound::play_ui(const char* sound, bool looping, float pitch) { if(sound) { sound::play_ui(resource::load<SoundEffect>(sound), looping, pitch); - } else { + } + else { sound::play_ui(static_cast<const char*>(nullptr), looping, pitch); } } |
