mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fixed sound bug and made things compile.
This commit is contained in:
parent
40eaf9431b
commit
cdc1655b33
|
@ -168,6 +168,7 @@ public:
|
|||
channels[c].loop = loop;
|
||||
channels[c].vol = vol * GLOBAL_VOLUME_SCALE;
|
||||
channels[c].pan = pan;
|
||||
channels[c].stop = -1;
|
||||
channels[c].lerp = -1;
|
||||
sound->last_played = time_get();
|
||||
return c;
|
||||
|
|
|
@ -705,7 +705,7 @@ static int main_render()
|
|||
{
|
||||
inited = true;
|
||||
|
||||
client_serverbrowse_refresh();
|
||||
client_serverbrowse_refresh(0);
|
||||
}
|
||||
|
||||
static int scoll_index = 0, selected_index = -1;
|
||||
|
@ -727,7 +727,7 @@ static int main_render()
|
|||
static int refresh_button, join_button, quit_button;
|
||||
|
||||
if (ui_do_button(&refresh_button, "Refresh", 0, 20, 420, 170, 48, draw_teewars_button))
|
||||
client_serverbrowse_refresh();
|
||||
client_serverbrowse_refresh(0);
|
||||
|
||||
/*if (selected_index == -1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue