maybe actually hook it up somewhere?
This commit is contained in:
parent
86418c0bef
commit
121573f483
|
@ -122,6 +122,11 @@ void LANStartClientDialog::done(int r)
|
|||
|
||||
LAN::StartClient(player.c_str(), host.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
// TEST!!
|
||||
LAN::StartDiscovery();
|
||||
}
|
||||
|
||||
QDialog::done(r);
|
||||
}
|
||||
|
@ -329,7 +334,6 @@ void StartDiscovery()
|
|||
}
|
||||
|
||||
DiscoveryLastTick = SDL_GetTicks();
|
||||
|
||||
DiscoveryList.clear();
|
||||
}
|
||||
|
||||
|
@ -365,6 +369,8 @@ void StartHost(const char* playername, int numplayers)
|
|||
IsHost = true;
|
||||
|
||||
lanDlg->updatePlayerList(Players, NumPlayers);
|
||||
|
||||
StartDiscovery();
|
||||
}
|
||||
|
||||
void StartClient(const char* playername, const char* host)
|
||||
|
|
|
@ -123,6 +123,7 @@ extern bool Active;
|
|||
bool Init();
|
||||
void DeInit();
|
||||
|
||||
void StartDiscovery();
|
||||
void StartHost(const char* player, int numplayers);
|
||||
void StartClient(const char* player, const char* host);
|
||||
|
||||
|
|
Loading…
Reference in New Issue