aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-08-19 15:41:53 +0200
committertpart <tpart120@proton.me>2024-08-19 15:41:53 +0200
commit70601b430804593826862fbc1aba0f14362ce3c1 (patch)
treeda017e178fbbaf526f4b53471e7c5163a98678a4
parent30f62d2116be9b8f485204adf72449bcaac8ae5b (diff)
downloadhurrycurry-70601b430804593826862fbc1aba0f14362ce3c1.tar
hurrycurry-70601b430804593826862fbc1aba0f14362ce3c1.tar.bz2
hurrycurry-70601b430804593826862fbc1aba0f14362ce3c1.tar.zst
Add comment explaining obscure function
-rw-r--r--client/audio/sound.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/audio/sound.gd b/client/audio/sound.gd
index ea39050a..fbd4fb5d 100644
--- a/client/audio/sound.gd
+++ b/client/audio/sound.gd
@@ -49,6 +49,8 @@ func play_hover():
hover_sound.play()
func play_hover_maybe(element):
+ # Don't play hover sound when focus is changed by clicking using a mouse.
+ # TODO: Clean up this code and find a proper solution.
if element is Button:
if element.is_hovered():
return