Skip to content

Commit d01b757

Browse files
committed
fix "unused var"
1 parent 2ca0578 commit d01b757

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CEconomy.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,6 @@ void CEconomy::tryBuildingDefense(CGroup* group) {
10671067

10681068
//bool allow;
10691069
int size;
1070-
float k;
10711070
unitCategory incCats, excCats;
10721071
buildType bt;
10731072
CCoverageCell::NType layer;
@@ -1096,9 +1095,9 @@ void CEconomy::tryBuildingDefense(CGroup* group) {
10961095
}
10971096

10981097
size = ai->coverage->getLayerSize(layer);
1099-
k = size / (ai->unittable->staticUnits.size() - size + 1.0f);
1098+
/*const float k = size / (ai->unittable->staticUnits.size() - size + 1.0f);
11001099
1101-
/*switch (ai->difficulty) {
1100+
switch (ai->difficulty) {
11021101
case DIFFICULTY_EASY:
11031102
allow = k < 0.11f;
11041103
break;

0 commit comments

Comments
 (0)