1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

Removed commented part for daily income

This commit is contained in:
Macron1Robot 2014-04-27 13:44:56 +04:00
parent 5adafe02a2
commit 31f2af6243

View File

@ -1331,27 +1331,6 @@ void CGameHandler::newTurn()
if(!firstTurn && player < PlayerColor::PLAYER_LIMIT)//not the first day and town not neutral
{
n.res[player] = n.res[player] + t->dailyIncome();
// TResources townIncome = t->dailyIncome();
// for (auto i = Res::WOOD; i <= Res::GOLD; vstd::advance(i, 1))
// {
// n.res[player][i] += townIncome[i];
// }
// if(t->hasBuilt(BuildingID::RESOURCE_SILO)) //there is resource silo
// {
// if(t->town->primaryRes == Res::WOOD_AND_ORE) //we'll give wood and ore
// {
// n.res[player][Res::WOOD] ++;
// n.res[player][Res::ORE] ++;
// }
// else
// {
// if (t->town->primaryRes != Res::GOLD)
// n.res[player][t->town->primaryRes] ++;
// }
// }
// n.res[player][Res::GOLD] += t->dailyIncome();
}
if(t->hasBuilt(BuildingID::GRAIL, ETownType::TOWER))
{