1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-04 23:17:41 +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; TResources ret;
for(const CGTownInstance *t : cb->getTownsInfo()) for(const CGTownInstance *t : cb->getTownsInfo())
{ {
// TResources townIncome = t->dailyIncome(); ret += t->dailyIncome();
ret = ret + t->dailyIncome();
// for (auto i = Res::WOOD; i <= Res::GOLD; vstd::advance(i, 1))
// {
// ret[i] += townIncome[i];
// }
} }