1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Update VCAI.cpp

Deleted commented text and optimized estimateIncome
This commit is contained in:
Macron1Robot 2014-04-28 10:33:42 +04:00
parent ede9818b38
commit 21c2efbc64

View File

@ -2345,12 +2345,7 @@ TResources VCAI::estimateIncome() const
TResources ret;
for(const CGTownInstance *t : cb->getTownsInfo())
{
// TResources townIncome = t->dailyIncome();
ret = ret + t->dailyIncome();
// for (auto i = Res::WOOD; i <= Res::GOLD; vstd::advance(i, 1))
// {
// ret[i] += townIncome[i];
// }
ret += t->dailyIncome();
}