There was an error while loading. Please reload this page.
1 parent 2ca0578 commit d01b757Copy full SHA for d01b757
CEconomy.cpp
@@ -1067,7 +1067,6 @@ void CEconomy::tryBuildingDefense(CGroup* group) {
1067
1068
//bool allow;
1069
int size;
1070
-float k;
1071
unitCategory incCats, excCats;
1072
buildType bt;
1073
CCoverageCell::NType layer;
@@ -1096,9 +1095,9 @@ void CEconomy::tryBuildingDefense(CGroup* group) {
1096
1095
}
1097
1098
size = ai->coverage->getLayerSize(layer);
1099
-k = size / (ai->unittable->staticUnits.size() - size + 1.0f);
+/*const float k = size / (ai->unittable->staticUnits.size() - size + 1.0f);
1100
1101
-/*switch (ai->difficulty) {
+switch (ai->difficulty) {
1102
case DIFFICULTY_EASY:
1103
allow = k < 0.11f;
1104
break;
0 commit comments