浏览代码

Removed commented part for daily income

Macron1Robot 11 年之前
父节点
当前提交
31f2af6243
共有 1 个文件被更改,包括 0 次插入21 次删除
  1. 0 21
      server/CGameHandler.cpp

+ 0 - 21
server/CGameHandler.cpp

@@ -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))
 		{