Add Order counter for rough APM estimation. Rename Support to Production and move the production icons there

This commit is contained in:
Scott_NZ
2012-11-25 00:28:22 +13:00
parent 30a374b9e9
commit 36f349ecba
6 changed files with 102 additions and 38 deletions

View File

@@ -86,7 +86,7 @@ namespace OpenRA.Traits
public int DisplayCash;
public int DisplayOre;
public int IncomePerMin;
public int IncomePerMinute;
int incomeCounter;
public double IncomeChange;
@@ -206,8 +206,8 @@ namespace OpenRA.Traits
if (self.World.FrameNumber % 1500 == 0)
{
IncomeChange = IncomePerMin == 0 ? 0 : (double)(incomeCounter - IncomePerMin) / IncomePerMin;
IncomePerMin = incomeCounter;
IncomeChange = IncomePerMinute == 0 ? 0 : (double)(incomeCounter - IncomePerMinute) / IncomePerMinute;
IncomePerMinute = incomeCounter;
incomeCounter = 0;
}
}