mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
Reimplement miles sound artifacts, Stone Brick Stairs recipe, and craft sound (#684)
* Reimplement miles sound artifacts * Fix stone brick stairs recipe * Fix craft and scroll sound
This commit is contained in:
parent
0469e982ce
commit
de46641cda
6 changed files with 13 additions and 6 deletions
|
|
@ -2342,7 +2342,13 @@ void UIController::PlayUISFX(ESoundEffect eSound)
|
|||
if (time - m_lastUiSfx < 10) { return; }
|
||||
m_lastUiSfx = time;
|
||||
|
||||
Minecraft::GetInstance()->soundEngine->playUI(eSound,1.0f,1.0f);
|
||||
float pitch = 1.0f;
|
||||
if (eSound == eSFX_Focus)
|
||||
{
|
||||
pitch += (m_randomDistribution(m_randomGenerator) - 0.5f) / 10;
|
||||
}
|
||||
|
||||
Minecraft::GetInstance()->soundEngine->playUI(eSound,1.0f,pitch);
|
||||
}
|
||||
|
||||
void UIController::DisplayGamertag(unsigned int iPad, bool show)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue