mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Limit properly the sound setting at updateSound runtime step (#5753)
* Limit properly the sound setting at updateSound runtime step Fix #5026 * Add a comment
This commit is contained in:
@@ -69,7 +69,7 @@ void GUIVolumeChange::regenerateGui(v2u32 screensize)
|
||||
Remove stuff
|
||||
*/
|
||||
removeChildren();
|
||||
|
||||
|
||||
/*
|
||||
Calculate new sizes and positions
|
||||
*/
|
||||
@@ -79,12 +79,11 @@ void GUIVolumeChange::regenerateGui(v2u32 screensize)
|
||||
screensize.X/2 + 380/2,
|
||||
screensize.Y/2 + 200/2
|
||||
);
|
||||
|
||||
|
||||
DesiredRect = rect;
|
||||
recalculateAbsolutePosition(false);
|
||||
|
||||
v2s32 size = rect.getSize();
|
||||
v2s32 topleft_client(40, 0);
|
||||
int volume = (int)(g_settings->getFloat("sound_volume")*100);
|
||||
/*
|
||||
Add stuff
|
||||
|
Reference in New Issue
Block a user