1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00
This commit is contained in:
Laserlicht 2024-07-16 03:29:05 +02:00
parent 832e1531fc
commit fa7153b577
3 changed files with 1 additions and 3 deletions

View File

@ -13,7 +13,6 @@
#include "../lib/network/NetworkInterface.h"
#include "../lib/StartInfo.h"
#include "../lib/ResourceSet.h"
VCMI_LIB_NAMESPACE_BEGIN

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 ? 1 : playerSettings->handicap.percentIncome[which] / 100);
resources[which] = val * (playerSettings->handicap.percentIncome[which] == 0 ? 100 : playerSettings->handicap.percentIncome[which]) / 100;
giveResources(player, resources);
}

View File

@ -11,7 +11,6 @@
#include "../lib/network/NetworkInterface.h"
#include "../lib/StartInfo.h"
#include "../lib/ResourceSet.h"
VCMI_LIB_NAMESPACE_BEGIN