Skip to content

Commit

Permalink
Fixed values not updating.
Browse files Browse the repository at this point in the history
  • Loading branch information
BigETI committed Dec 15, 2018
1 parent a98b982 commit 584a0d3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
Binary file modified .vs/SAMPLauncherNET/v15/.suo
Binary file not shown.
4 changes: 2 additions & 2 deletions SAMPLauncherNET/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.6.4")]
[assembly: AssemblyFileVersion("1.0.6.4")]
[assembly: AssemblyVersion("1.0.6.5")]
[assembly: AssemblyFileVersion("1.0.6.5")]
18 changes: 10 additions & 8 deletions SAMPLauncherNET/Source/SAMPLauncherNET/UI/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ private void ReloadSelectedServerRow()
row[7] = (player_count == 0U);
row[8] = (player_count >= max_players);
}
data_row.ItemArray = row;
data_row.EndEdit();
}
}
Expand Down Expand Up @@ -1624,28 +1625,29 @@ private void multithreadedListsTimer_Tick(object sender, EventArgs e)
if (data_row != null)
{
data_row.BeginEdit();
object[] row_data = data_row.ItemArray;
object[] row = data_row.ItemArray;
foreach (ERequestResponseType response in kv.Value)
{
switch (response)
{
case ERequestResponseType.Ping:
row_data[1] = new PingString(kv.Key.Ping);
row[1] = new PingString(kv.Key.Ping);
break;
case ERequestResponseType.Information:
{
uint player_count = kv.Key.PlayerCount;
uint max_players = kv.Key.MaxPlayers;
row_data[2] = kv.Key.Hostname;
row_data[3] = new PlayerCountString(player_count, kv.Key.MaxPlayers);
row_data[4] = kv.Key.Gamemode;
row_data[5] = kv.Key.Language;
row_data[7] = (player_count <= 0);
row_data[8] = (player_count >= max_players);
row[2] = kv.Key.Hostname;
row[3] = new PlayerCountString(player_count, max_players);
row[4] = kv.Key.Gamemode;
row[5] = kv.Key.Language;
row[7] = (player_count <= 0);
row[8] = (player_count >= max_players);
}
break;
}
}
data_row.ItemArray = row;
data_row.EndEdit();
kv.Value.Clear();
}
Expand Down
Binary file not shown.

0 comments on commit 584a0d3

Please sign in to comment.