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:
parent
ede9818b38
commit
21c2efbc64
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user