mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
Small Tweaks
This commit is contained in:
committed by
iProgramInCpp
parent
118d28910d
commit
7771bc20a7
@@ -295,12 +295,12 @@ void Screen::mouseReleased(int xPos, int yPos, int d)
|
||||
|
||||
if (m_pClickedButton)
|
||||
{
|
||||
m_pClickedButton->released(xPos, yPos);
|
||||
if (m_pMinecraft->isTouchscreen())
|
||||
if (m_pMinecraft->isTouchscreen() && button->clicked(m_pMinecraft, xPos, yPos))
|
||||
{
|
||||
m_pMinecraft->m_pSoundEngine->play("random.click");
|
||||
buttonClicked(m_pClickedButton);
|
||||
}
|
||||
m_pClickedButton->released(xPos, yPos);
|
||||
m_pClickedButton = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user