maybe actually hook it up somewhere?

This commit is contained in:
Arisotura
2023-09-09 12:04:26 +02:00
parent 86418c0bef
commit 121573f483
2 changed files with 8 additions and 1 deletions

View File

@ -122,6 +122,11 @@ void LANStartClientDialog::done(int r)
LAN::StartClient(player.c_str(), host.c_str()); LAN::StartClient(player.c_str(), host.c_str());
} }
else
{
// TEST!!
LAN::StartDiscovery();
}
QDialog::done(r); QDialog::done(r);
} }
@ -329,7 +334,6 @@ void StartDiscovery()
} }
DiscoveryLastTick = SDL_GetTicks(); DiscoveryLastTick = SDL_GetTicks();
DiscoveryList.clear(); DiscoveryList.clear();
} }
@ -365,6 +369,8 @@ void StartHost(const char* playername, int numplayers)
IsHost = true; IsHost = true;
lanDlg->updatePlayerList(Players, NumPlayers); lanDlg->updatePlayerList(Players, NumPlayers);
StartDiscovery();
} }
void StartClient(const char* playername, const char* host) void StartClient(const char* playername, const char* host)

View File

@ -123,6 +123,7 @@ extern bool Active;
bool Init(); bool Init();
void DeInit(); void DeInit();
void StartDiscovery();
void StartHost(const char* player, int numplayers); void StartHost(const char* player, int numplayers);
void StartClient(const char* player, const char* host); void StartClient(const char* player, const char* host);