Skip to content

Commit 2c0ce7a

Browse files
olafkryusveikkos
authored andcommitted
Show wind location in options
1 parent cf3e9bf commit 2c0ce7a

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

SJ3.PAS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ begin
582582
8 : if (goals) then str1:=lstr(180) else str1:=lstr(186);
583583
9 : if (seecomps>NumPl) then str1:=lstr(seecomps) else str1:='#'+txt(seecomps);
584584

585-
{ 8 : str1:=txt(windplace); }
585+
10 : str1:=nsh(WindPlaceName(windplace),60);
586586
11 : if (kosystem) then str1:=lstr(182) else str1:=lstr(185);
587587
end;
588588

SJ3UNIT.PAS

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ function LoadInfo(nytmaki:integer;
146146
var hill:hill_type):byte;
147147

148148
procedure choosewindplace(var place:byte);
149+
function WindPlaceName(place:byte):string;
149150

150151
procedure SetupItem(index,screen,entries:byte;str1:string);
151152

@@ -2247,19 +2248,9 @@ begin
22472248
for apu1:=1 to winds do
22482249
begin
22492250
yy:=apu1*10+34;
2250-
{ 390-top, 391-middle, 392-bottom, 393-left, 394-center, 395-right, 396-jpr }
22512251
case apu1 of
2252-
1 : str1:=lstr(392)+'-'+lstr(393);
2253-
2 : str1:=lstr(391)+'-'+lstr(393);
2254-
3 : str1:=lstr(392)+'-'+lstr(395);
2255-
4 : str1:=lstr(392)+'-'+lstr(394);
2256-
5 : str1:=lstr(391)+'-'+lstr(395);
2257-
6 : str1:=lstr(390)+'-'+lstr(395);
2258-
7 : str1:=lstr(390)+'-'+lstr(394);
2259-
8 : str1:=lstr(390)+'-'+lstr(393);
2260-
9 : str1:=lstr(396)+': '+lstr(390); { oikeasti 11 }
2261-
10 : str1:=lstr(396)+': '+lstr(391); { 12 }
2262-
11 : str1:=lstr(396)+': '+lstr(392); { 13 }
2252+
1..8: str1:=WindPlaceName(apu1);
2253+
9..11: str1:=WindPlaceName(apu1+2);
22632254
end;
22642255

22652256
fontcolor(246);
@@ -2285,6 +2276,24 @@ begin
22852276

22862277
end;
22872278

2279+
function WindPlaceName(place:byte):string;
2280+
begin
2281+
{ 390-top, 391-middle, 392-bottom, 393-left, 394-center, 395-right, 396-jpr }
2282+
case place of
2283+
1 : WindPlaceName:=lstr(392)+'-'+lstr(393);
2284+
2 : WindPlaceName:=lstr(391)+'-'+lstr(393);
2285+
3 : WindPlaceName:=lstr(392)+'-'+lstr(395);
2286+
4 : WindPlaceName:=lstr(392)+'-'+lstr(394);
2287+
5 : WindPlaceName:=lstr(391)+'-'+lstr(395);
2288+
6 : WindPlaceName:=lstr(390)+'-'+lstr(395);
2289+
7 : WindPlaceName:=lstr(390)+'-'+lstr(394);
2290+
8 : WindPlaceName:=lstr(390)+'-'+lstr(393);
2291+
11 : WindPlaceName:=lstr(396)+': '+lstr(390);
2292+
12 : WindPlaceName:=lstr(396)+': '+lstr(391);
2293+
13 : WindPlaceName:=lstr(396)+': '+lstr(392);
2294+
end;
2295+
end;
2296+
22882297

22892298
procedure WriteExtras; { kirjoitetaan extrahillsien hillrecit }
22902299
var temp, index : integer;

0 commit comments

Comments
 (0)