Skip to content

Commit

Permalink
Fixed not updating opforCount in FSM
Browse files Browse the repository at this point in the history
closes #788
  • Loading branch information
veteran29 committed Aug 5, 2020
1 parent f98296b commit b7319ee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Missionframework/scripts/server/sector/fn_sectorMonitor.fsm
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ class FSM
{
name = "Get_next_sector";
itemno = 8;
init = /*%FSM<STATEINIT""">*/"_sector = _allSectors deleteAt (floor random (count _allSectors));" \n
"_opforCount = [] call KPLIB_fnc_getOpforCap;"/*%FSM</STATEINIT""">*/;
init = /*%FSM<STATEINIT""">*/"_sector = _allSectors deleteAt (floor random (count _allSectors));"/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{
Expand All @@ -182,7 +181,7 @@ class FSM
priority = 0.000000;
to="Get_adjusted_sector";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"_opforCount < GRLIB_sector_cap"/*%FSM</CONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"([] call KPLIB_fnc_getOpforCap) < KPLIB_sector_cap"/*%FSM</CONDITION""">*/;
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
};
/*%FSM</LINK>*/
Expand Down Expand Up @@ -368,4 +367,4 @@ class FSM
"Exit_1",
};
};
/*%FSM</COMPILE>*/
/*%FSM</COMPILE>*/

0 comments on commit b7319ee

Please sign in to comment.