diff --git a/source/glest_game/world/world.cpp b/source/glest_game/world/world.cpp index d75e5314..549f95d7 100644 --- a/source/glest_game/world/world.cpp +++ b/source/glest_game/world/world.cpp @@ -275,7 +275,8 @@ void World::updateAllFactionUnits() { // Prioritize grouped command units so closest units to target go first // units - bool sortedUnitsAllowed = true; + Config &config= Config::getInstance(); + bool sortedUnitsAllowed = config.getBool("AllowGroupedUnitCommands","true"); std::map > unitsInFactionsSorted; int factionCount = getFactionCount();