Skip to content

Commit

Permalink
TOXIKK: fixed mapping of "description" field when using steam web API…
Browse files Browse the repository at this point in the history
… as master server
  • Loading branch information
PredatH0r committed Jun 15, 2017
1 parent 367d6a7 commit c8f52e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion QueryMaster/QueryMaster/MasterServerWebApi.cs
Expand Up @@ -103,7 +103,7 @@ private ServerInfo ConvertToServerInfo(Message msg)
var si = new ServerInfo();
si.Address = msg.addr;
si.Bots = (byte)msg.bots;
si.Description = msg.product;
si.Description = msg.gametype; // description has no exact match in the XML; msg.product has no match in A2S_INFO
si.Directory = msg.gamedir;
si.Environment = msg.os == "w" ? "Windows" : msg.os == "l" ? "Linux" : msg.os;
si.Extra.GameId = msg.appid;
Expand Down
2 changes: 1 addition & 1 deletion ServerBrowser/Games/Toxikk.cs
Expand Up @@ -129,7 +129,7 @@ public override object GetServerCellValue(ServerRow row, string fieldName)
return row.GetRule(fieldName) == "1";
case "_gametype":
{
var gt = row.ServerInfo.Description;
var gt = row.ServerInfo.Extra.Keywords;
return gt == null ? null :
gt == "CRZEntryGame" ? "Menu" :
gt == "CRZBloodLust" ? "BL" :
Expand Down
2 changes: 1 addition & 1 deletion ServerBrowser/ServerBrowserForm.cs
Expand Up @@ -31,7 +31,7 @@ namespace ServerBrowser
{
public partial class ServerBrowserForm : XtraForm
{
private const string Version = "2.45";
private const string Version = "2.45.2";
private const string DevExpressVersion = "v15.2";
private const string SteamWebApiText = "<Steam Web API>";
private const string CustomDetailColumnPrefix = "ServerInfo.";
Expand Down

0 comments on commit c8f52e4

Please sign in to comment.