From: Holger Schemel Date: Fri, 20 Aug 2021 14:26:15 +0000 (+0200) Subject: added always using game version in requests to score server X-Git-Tag: 4.3.0.0~93 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b1c3a868574635d04acd8d6a435835adfbfd0326;p=rocksndiamonds.git added always using game version in requests to score server --- diff --git a/src/files.c b/src/files.c index 9c370e72..927b2a3c 100644 --- a/src/files.c +++ b/src/files.c @@ -9073,10 +9073,12 @@ static void DownloadServerScoreToCacheExt(struct HttpRequest *request, snprintf(request->body, MAX_HTTP_BODY_SIZE, "{\n" "%s" + " \"game_version\": \"%s\",\n" " \"levelset_identifier\": \"%s\",\n" " \"level_nr\": \"%d\"\n" "}\n", getPasswordJSON(setup.api_server_password), + getProgramRealVersionString(), levelset.identifier, level_nr); ConvertHttpRequestBodyToServerEncoding(request); diff --git a/src/screens.c b/src/screens.c index 5c78347a..23e0b113 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4055,10 +4055,12 @@ static void RenamePlayerOnServerExt(struct HttpRequest *request, snprintf(request->body, MAX_HTTP_BODY_SIZE, "{\n" "%s" + " \"game_version\": \"%s\",\n" " \"name\": \"%s\",\n" " \"uuid\": \"%s\"\n" "}\n", getPasswordJSON(setup.api_server_password), + getProgramRealVersionString(), player_name, player_uuid);