mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Code style: avoid some ambiguous else if indentation
If some code intentionally want to break else if to achieve specific indentation there must be braces.
This commit is contained in:
@@ -129,8 +129,10 @@ void CZonePlacer::placeZones(const CMapGenOptions * mapGenOptions, CRandomGenera
|
||||
improvement = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (totalDistance + totalOverlap < bestTotalDistance + bestTotalOverlap)
|
||||
improvement = true;
|
||||
}
|
||||
|
||||
logGlobal->traceStream() << boost::format("Total distance between zones after this iteration: %2.4f, Total overlap: %2.4f, Improved: %s") % totalDistance % totalOverlap % improvement;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user