Fixed amount of gold received from using depleted mines (from ludo)

This commit is contained in:
jsalmon3 2002-12-20 17:15:44 +00:00
parent 200710ae36
commit 2834120ce1

View file

@ -368,13 +368,11 @@ local int MoveToGoldDeposit(Unit* unit)
//
if ( OptionUseDepletedMines && (int)unit->Rs == OptionUseDepletedMines ) {
unit->Player->Resources[GoldCost]+=
(unit->Player->Incomes[GoldCost] * 100)
/ OptionUseDepletedMines;
(unit->Player->Incomes[GoldCost] * OptionUseDepletedMines) / 100;
unit->Player->TotalResources[GoldCost]+=
(unit->Player->Incomes[GoldCost] * 100)
/ OptionUseDepletedMines;
(unit->Player->Incomes[GoldCost] * OptionUseDepletedMines) / 100;
} else {
unit->Player->Resources[GoldCost]+=unit->Player->Incomes[GoldCost];
unit->Player->Resources[GoldCost]+=unit->Player->Incomes[GoldCost];
unit->Player->TotalResources[GoldCost]+=unit->Player->Incomes[GoldCost];
}
if( unit->Player==ThisPlayer ) {