Skip to content

Commit 36e92ae

Browse files
committed
fixed hit sound in spec
1 parent 3cd14b7 commit 36e92ae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

DragonBurn/Features/Misc.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ namespace Misc
5353
}
5454
}
5555

56-
void HitManager(const CEntity& LocalPlayer, int& PreviousTotalHits) noexcept
56+
void HitManager(CEntity& LocalPlayer, int& PreviousTotalHits) noexcept
5757
{
58-
if ((!MiscCFG::HitSound && !MiscCFG::HitMarker) || LocalPlayer.Controller.TeamID == 0 || MenuConfig::ShowMenu)
58+
if ((!MiscCFG::HitSound && !MiscCFG::HitMarker) || LocalPlayer.Controller.TeamID == 0 || MenuConfig::ShowMenu || !LocalPlayer.IsAlive())
5959
{
6060
return;
6161
}

DragonBurn/Features/Misc.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ namespace Misc
148148

149149
};
150150

151-
void Watermark(const CEntity& aLocalPlayer) noexcept;
152-
void HitManager(const CEntity& aLocalPlayer, int& PreviousTotalHits) noexcept;
153-
void BunnyHop(const CEntity& Local) noexcept;
151+
void Watermark(const CEntity&) noexcept;
152+
void HitManager(CEntity&, int&) noexcept;
153+
void BunnyHop(const CEntity&) noexcept;
154154
void CleanTraces();
155155
//void FastStop() noexcept;// junk
156156
}

0 commit comments

Comments
 (0)