diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-20 06:11:27 +0200 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-20 06:11:27 +0200 |
commit | c567bc30138af48a5c1d82b9936e829be9c44fed (patch) | |
tree | 7d3c0bd1da393b2b3f54ddbd7f0455510409247f | |
parent | d5fa15333f25c2d0ec5092eb21f503f7b82dfef7 (diff) | |
download | algeria-c567bc30138af48a5c1d82b9936e829be9c44fed.tar.gz |
fix OAS active check
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -380,7 +380,7 @@ function is_area_country(l) { } function is_area_algerian(l) { - return areas[l].type !== COUNTRY + return l > 2 && areas[l].type !== COUNTRY } function is_area_france(l) { @@ -724,7 +724,7 @@ function for_each_neutralized_unit_in_algeria(fn) { for (let u = first_gov_unit; u <= last_fln_unit; ++u) if (is_unit_neutralized(u)) { let loc = unit_loc(u) - if (loc > 2 && is_area_algerian(loc)) + if (is_area_algerian(loc)) fn(u) } } @@ -733,7 +733,7 @@ function for_each_non_neutralized_unit_in_algeria(fn) { for (let u = first_gov_unit; u <= last_fln_unit; ++u) if (is_unit_not_neutralized(u)) { let loc = unit_loc(u) - if (loc > 2 && is_area_algerian(loc)) + if (is_area_algerian(loc)) fn(u) } } @@ -902,7 +902,7 @@ function has_fln_not_neutralized_mobile_unit_in_algeria() { for (let u = first_fln_unit; u <= last_fln_unit; ++u) if (is_unit_not_neutralized(u) && is_mobile_unit(u)) { let loc = unit_loc(u) - if (loc > 2 && is_area_algerian(loc)) + if (is_area_algerian(loc)) return true } return false |