1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

change data structure

This commit is contained in:
Laserlicht
2024-07-24 01:34:29 +02:00
parent fa7153b577
commit 268e0c8c44
5 changed files with 35 additions and 14 deletions

View File

@@ -1431,7 +1431,7 @@ void CGameHandler::giveResource(PlayerColor player, GameResID which, int val) //
auto * playerSettings = gs->scenarioOps->getPlayersSettings(player);
TResources resources;
resources[which] = val * (playerSettings->handicap.percentIncome[which] == 0 ? 100 : playerSettings->handicap.percentIncome[which]) / 100;
resources[which] = val * playerSettings->handicap.percentIncome / 100;
giveResources(player, resources);
}