From 494c02d28b2e2122710939b7712a5ded6079c0ec Mon Sep 17 00:00:00 2001 From: Jessica James Date: Sun, 19 Nov 2017 10:42:58 -0600 Subject: [PATCH] Added "bRanked" and "Game Type" to server JSON blocks --- RenX.ServerList/RenX_ServerList.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RenX.ServerList/RenX_ServerList.cpp b/RenX.ServerList/RenX_ServerList.cpp index ef4eb95..49eccd7 100644 --- a/RenX.ServerList/RenX_ServerList.cpp +++ b/RenX.ServerList/RenX_ServerList.cpp @@ -223,7 +223,7 @@ Jupiter::StringS server_as_json(const RenX::Server &server) Jupiter::String server_map = jsonify(server.getMap().name); Jupiter::String server_version = jsonify(server.getGameVersion()); - server_json_block.format(R"json({"Name":"%.*s","Current Map":"%.*s","Bots":%u,"Players":%u,"Game Version":"%.*s","Variables":{"Mine Limit":%d,"bSteamRequired":%s,"bPrivateMessageTeamOnly":%s,"bPassworded":%s,"bAllowPrivateMessaging":%s,"Player Limit":%d,"Vehicle Limit":%d,"bAutoBalanceTeams":%s,"Team Mode":%d,"bSpawnCrates":%s,"CrateRespawnAfterPickup":%f,"Time Limit":%d},"Port":%u,"IP":"%.*s")json", + server_json_block.format(R"json({"Name":"%.*s","Current Map":"%.*s","Bots":%u,"Players":%u,"Game Version":"%.*s","Variables":{"Mine Limit":%d,"bSteamRequired":%s,"bPrivateMessageTeamOnly":%s,"bPassworded":%s,"bAllowPrivateMessaging":%s,"bRanked":%s,"Game Type":%d,"Player Limit":%d,"Vehicle Limit":%d,"bAutoBalanceTeams":%s,"Team Mode":%d,"bSpawnCrates":%s,"CrateRespawnAfterPickup":%f,"Time Limit":%d},"Port":%u,"IP":"%.*s")json", server_name.size(), server_name.ptr(), server_map.size(), server_map.ptr(), server.getBotCount(), @@ -234,6 +234,8 @@ Jupiter::StringS server_as_json(const RenX::Server &server) json_bool_as_cstring(server.isPrivateMessageTeamOnly()), json_bool_as_cstring(server.isPassworded()), json_bool_as_cstring(server.isPrivateMessagingEnabled()), + json_bool_as_cstring(server.isRanked()), + server.getGameType(), server.getPlayerLimit(), server.getVehicleLimit(), json_bool_as_cstring(server.getTeamMode() == 3),