From 94ab9da985c6c8d7b823d5ee1658bbf0d42a96a9 Mon Sep 17 00:00:00 2001 From: sasgis <> Date: Sat, 12 Dec 1970 12:00:00 +0000 Subject: [PATCH] update zmp --- _Genshtab/gsh_500m_new.zmp/GetUrlScript.txt | 14 ++++++++++++-- _tourism/altay_katun_chui.zmp/GetUrlScript.txt | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt b/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt index 1acc47c60..75ac07093 100644 --- a/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt +++ b/_Genshtab/gsh_500m_new.zmp/GetUrlScript.txt @@ -1,3 +1,13 @@ +var + r: integer; + BaseUrl: string; begin - ResultURL:=GetURLBase+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.jpg'; -end. + r := random(2); + + case r of + 0: BaseUrl := GetURLBase; + 1: BaseUrl := RegExprReplaceMatchSubStr(GetURLBase, '91.237.82.95:8088/pub', 'maps.melda.ru'); + end; + + ResultURL:= BaseUrl+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.jpg'; +end. \ No newline at end of file diff --git a/_tourism/altay_katun_chui.zmp/GetUrlScript.txt b/_tourism/altay_katun_chui.zmp/GetUrlScript.txt index 75ac07093..7b57ddf1f 100644 --- a/_tourism/altay_katun_chui.zmp/GetUrlScript.txt +++ b/_tourism/altay_katun_chui.zmp/GetUrlScript.txt @@ -9,5 +9,5 @@ begin 1: BaseUrl := RegExprReplaceMatchSubStr(GetURLBase, '91.237.82.95:8088/pub', 'maps.melda.ru'); end; - ResultURL:= BaseUrl+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.jpg'; + ResultURL:= BaseUrl+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.png'; end. \ No newline at end of file