Menu: Fix music not stopping when joining a server.
This commit is contained in:
parent
7902ae22d5
commit
4bde3bbfb6
2 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ inet_btnjoin(void)
|
|||
string addr = inet_lbServers_Addresses.GetSelectedItem();
|
||||
|
||||
if (addr) {
|
||||
localcmd("stopmusic\n");
|
||||
localcmd(sprintf("connect %s\n", addr));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ lan_btnjoin(void)
|
|||
string addr = lan_lbServers_Addresses.GetSelectedItem();
|
||||
|
||||
if (addr) {
|
||||
localcmd("stopmusic\n");
|
||||
localcmd(sprintf("connect %s\n", addr));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue