From 0fea2fcd0c430dd14138026bad07c1be07bbfaf4 Mon Sep 17 00:00:00 2001 From: sasgis <> Date: Sat, 12 Dec 1970 12:00:00 +0000 Subject: [PATCH] update zmp --- _Genshtab/ggc/karta_ggc_all.zmp/GetUrlScript.txt | 6 +++++- _Genshtab/gsh_500m_new.zmp/GetUrlScript.txt | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/_Genshtab/ggc/karta_ggc_all.zmp/GetUrlScript.txt b/_Genshtab/ggc/karta_ggc_all.zmp/GetUrlScript.txt index 5575323f3..cc1db2a69 100644 --- a/_Genshtab/ggc/karta_ggc_all.zmp/GetUrlScript.txt +++ b/_Genshtab/ggc/karta_ggc_all.zmp/GetUrlScript.txt @@ -2,7 +2,11 @@ var r: integer; BaseUrl: string; begin - r := random(2); + // Выбор зеркала , если не указана версия + if version = '' then + r := random(2) + else + r := StrToInt(version); case r of 0: BaseUrl := GetURLBase; diff --git a/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt b/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt index 3589bd7c4..de40ed343 100644 --- a/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt +++ b/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt @@ -25,8 +25,12 @@ begin // Масштаба нет - говорить не о чем if getz >= z_no then exit; - // Выбор зеркала - r := random(3); + // Выбор зеркала , если не указана версия + if version = '' then + r := random(3) + else + r := StrToInt(version); + case r of 0: BaseUrl := GetURLBase; 1: BaseUrl := RegExprReplaceMatchSubStr(GetURLBase, '91.237.82.95:8088', 'maps.melda.ru');