From 6dc5194895b6bd61d19bf5c95021471784084325 Mon Sep 17 00:00:00 2001 From: untodesu Date: Tue, 1 Jul 2025 03:23:05 +0500 Subject: I forgot to set these to true in .clang-format https://files.catbox.moe/909rig.gif --- game/client/sound/sound.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'game/client/sound/sound.cc') 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(sound), looping, pitch); - } else { + } + else { sound::play_generic(static_cast(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(sound), looping, pitch); - } else { + } + else { sound::play_entity(entity, static_cast(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(sound), looping, pitch); - } else { + } + else { sound::play_player(static_cast(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(sound), looping, pitch); - } else { + } + else { sound::play_ui(static_cast(nullptr), looping, pitch); } } -- cgit