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