From 723584aa809d3235e53bf30ed62ebc46c5b77184 Mon Sep 17 00:00:00 2001
From: vbawol <vbawol@veteranbastards.com>
Date: Sun, 26 Mar 2017 10:30:39 -0500
Subject: [PATCH] moved required Arma version var to mission config

---
 Sources/epoch_code/System/player_login.fsm      | 2 +-
 Sources/epoch_config/Configs/CfgEpochClient.hpp | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Sources/epoch_code/System/player_login.fsm b/Sources/epoch_code/System/player_login.fsm
index ebec1765..a45dcc34 100644
--- a/Sources/epoch_code/System/player_login.fsm
+++ b/Sources/epoch_code/System/player_login.fsm
@@ -837,7 +837,7 @@ class FSM
                                         priority = 10.000000;
                                         to="ERROR_Wrong_Version_1";
                                         precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
-                                        condition=/*%FSM<CONDITION""">*/"productVersion select 2 < getNumber(configFile >> ""CfgMods"" >> ""Epoch"" >> ""ArmAVersion"")"/*%FSM</CONDITION""">*/;
+                                        condition=/*%FSM<CONDITION""">*/"productVersion select 2 < getNumber(getMissionConfig ""CfgEpochClient"" >> ""ArmAVersion"")"/*%FSM</CONDITION""">*/;
                                         action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
                                 };
                                 /*%FSM</LINK>*/
diff --git a/Sources/epoch_config/Configs/CfgEpochClient.hpp b/Sources/epoch_config/Configs/CfgEpochClient.hpp
index a78cc3be..a5106af2 100644
--- a/Sources/epoch_config/Configs/CfgEpochClient.hpp
+++ b/Sources/epoch_config/Configs/CfgEpochClient.hpp
@@ -15,6 +15,7 @@
 class CfgEpochClient
 {
     epochVersion = "0.5.0.0";
+    ArmAVersion = 168;
     sapperRngChance = 100; // increase number to reduce chances and reduce to increase. Default 100
     droneRngChance = 100; // increase number to reduce chances and reduce to increase. Default 100
     zombieRngChance = 50; // increase number to reduce chances and reduce to increase. Default 50