Ticket #3407: 3407-v1.1.patch
File 3407-v1.1.patch, 669 bytes (added by , 9 years ago) |
---|
-
source/simulation2/components/CCmpTerritoryManager.cpp
540 540 if (m_TerritoryTotalPassableCellCount == 0) 541 541 CalculateTerritories(); 542 542 543 ENSURE(m_TerritoryTotalPassableCellCount > 0); 543 // If it is still 0, then we return 0 544 if (m_TerritoryTotalPassableCellCount == 0) 545 return 0; 546 544 547 u8 percentage = (m_TerritoryCellCounts[player] * 100) / m_TerritoryTotalPassableCellCount; 545 548 ENSURE(percentage <= 100); 546 549 return percentage;