Skip to content

Commit

Permalink
buildingsOccupation - le pourcentage d'unités statiques était divisé …
Browse files Browse the repository at this point in the history
…par 100 deux fois et donc il n'y avait jamais d'unités statique
  • Loading branch information
zgmrvn committed Jun 11, 2017
1 parent acaa1f6 commit 0d0b679
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class CfgVehicles {
displayName = $STR_CORP_BUILDINGS_OCCUPATION_KEEP_POSITION_DN;
description = $STR_CORP_BUILDINGS_OCCUPATION_KEEP_POSITION_DESC;
typeName = "NUMBER";
defaultValue = "50";
defaultValue = "0.5";
control = "Slider";
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ if (count _units == 0) exitWith {[format ["%1 %2 : %3", localize "STR_CORP_BUILD

private _area = _logic getvariable ["objectArea", [0, 0, 0, false, 0]];
private _numberOfUnits = _logic getVariable ["NumberOfUnits", 10];
private _keepPosition = _logic getVariable ["KeepPosition", 50];
private _keepPosition = _logic getVariable ["KeepPosition", 0.5];
private _resumeDistance = _logic getVariable ["ResumeDistance", 25];
private _dynamicSimulation = _logic getVariable ["DynamicSimulation", true];
private _debug = _logic getVariable ["Debug", false];

_keepPosition = _keepPosition / 100;

private _units = _units call CORP_fnc_getGroupedUnits;
private _side = side (_units select 0);

Expand Down

0 comments on commit 0d0b679

Please sign in to comment.