Skip to content

Commit 19c173c

Browse files
committed
Fixed more problems caused by the replace tool
1 parent df9a551 commit 19c173c

File tree

2 files changed

+25
-24
lines changed

2 files changed

+25
-24
lines changed

source/dialog/startup/startup_start2.sqf

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ switch (_index) do
55

66
case index_max_radius_500:
77
{
8-
zones_max_radius = 500
8+
zones_max_radius = 500
99
};
1010

1111
case index_max_radius_750:
@@ -410,37 +410,37 @@ _index = lbCurSel 2104;
410410
switch (_index) do
411411
{
412412

413-
case index_ blufor_ap_0:
413+
case index_blufor_ap_0:
414414
{
415415
blufor_ap = 0;
416416
};
417417

418-
case index_ blufor_ap_10:
418+
case index_blufor_ap_10:
419419
{
420420
blufor_ap = 10;
421421
};
422422

423-
case index_ blufor_ap_50:
423+
case index_blufor_ap_50:
424424
{
425425
blufor_ap = 50;
426426
};
427427

428-
case index_ blufor_ap_80:
428+
case index_blufor_ap_80:
429429
{
430430
blufor_ap = 80;
431431
};
432432

433-
case index_ blufor_ap_110:
433+
case index_blufor_ap_110:
434434
{
435435
blufor_ap = 110;
436436
};
437437

438-
case index_ blufor_ap_170:
438+
case index_blufor_ap_170:
439439
{
440440
blufor_ap = 170;
441441
};
442442

443-
case index_ blufor_ap_200:
443+
case index_blufor_ap_200:
444444
{
445445
blufor_ap = 200;
446446
};
@@ -452,37 +452,37 @@ _index = lbCurSel 2105;
452452
switch (_index) do
453453
{
454454

455-
case index_ opfor_ap_0:
455+
case index_opfor_ap_0:
456456
{
457457
opfor_ap = 0;
458458
};
459459

460-
case index_ opfor_ap_10:
460+
case index_opfor_ap_10:
461461
{
462462
opfor_ap = 10;
463463
};
464464

465-
case index_ opfor_ap_50:
465+
case index_opfor_ap_50:
466466
{
467467
opfor_ap = 50;
468468
};
469469

470-
case index_ opfor_ap_80:
470+
case index_opfor_ap_80:
471471
{
472472
opfor_ap = 80;
473473
};
474474

475-
case index_ opfor_ap_110:
475+
case index_opfor_ap_110:
476476
{
477477
opfor_ap = 110;
478478
};
479479

480-
case index_ opfor_ap_170:
480+
case index_opfor_ap_170:
481481
{
482482
opfor_ap = 170;
483483
};
484484

485-
case index_ opfor_ap_200:
485+
case index_opfor_ap_200:
486486
{
487487
opfor_ap = 200;
488488
};
@@ -582,6 +582,7 @@ switch (_index) do
582582
{
583583
zones_max_dist_from_hq = 20000;
584584
};
585+
585586
case index_max_dist_hq_250:
586587
{
587588
zones_max_dist_from_hq = 25000;

source/initZones/locatorzonesV2.sqf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ for [{_i=1}, {_i<=zones_number}, {_i=_i+1}] do // BEGIN "FOR" LOOP --
3636

3737
_missionPos = [ClickedPos, 0,50,15,0,0.1,0,[],[[0,0],[0,0]]] call BIS_fnc_findSafePos;
3838

39-
if (0 == _missionPos select 0 && 0 == _missionPos select 1) then {
40-
clicked = false;
41-
hint "Invalid position, the position must be flat and no objects must be near the position";
42-
} else {
43-
onMapSingleClick "";
44-
hint "Valid pos, creating enemy zone";
45-
_found_distance = true;
39+
if (0 == _missionPos select 0 && 0 == _missionPos select 1) then {
40+
clicked = false;
41+
hint "Invalid position, the position must be flat and no objects must be near the position";
42+
} else {
43+
onMapSingleClick "";
44+
hint "Valid pos, creating enemy zone";
45+
_found_distance = true;
4646
};
4747
};
4848

@@ -69,8 +69,8 @@ player globalChat format["All zones found. Welcome to %1, %2",_worldName,profile
6969
[[{player globalChat "MISSION INITIALIZATION COMPLETE!"}],"BIS_fnc_Spawn",true,false] call BIS_fnc_MP;
7070
[[{hint format["MISSION INITIALIZATION COMPLETE!\nCampaign generated\nzones: %1\nmaximum radius: %2m\nminimum radius: %3m\nmax. distance from HQ: %4m\n\nIf you experience performance issues, restart the mission and try reducing the amount of zones/and or their radius",zones_number,zones_max_radius,zones_min_radius,zones_max_dist_from_hq]}],"BIS_fnc_Spawn",true,false] call BIS_fnc_MP;
7171
[] spawn {
72-
sleep 9;
73-
[] execVM "misc\bottom_right_message.sqf";
72+
sleep 9;
73+
[] execVM "misc\bottom_right_message.sqf";
7474
};
7575

7676

0 commit comments

Comments
 (0)