1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

grab gametype from status for T7

This commit is contained in:
RaidMax
2020-08-05 09:30:02 -05:00
parent 1793f630f2
commit a749185468
8 changed files with 48 additions and 7 deletions

View File

@ -703,6 +703,7 @@ namespace IW4MAdmin
var updatedClients = polledClients.Except(connectingClients).Except(disconnectingClients);
UpdateMap(statusResponse.Item2);
UpdateGametype(statusResponse.Item3);
return new List<EFClient>[]
{
@ -724,6 +725,14 @@ namespace IW4MAdmin
}
}
private void UpdateGametype(string gameType)
{
if (!string.IsNullOrEmpty(gameType))
{
Gametype = gameType;
}
}
private async Task ShutdownInternal()
{
foreach (var client in GetClientsAsList())