1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

remove allresources

This commit is contained in:
Laserlicht
2025-09-14 15:29:14 +02:00
parent ded1a70dd7
commit 75f965c93a
15 changed files with 29 additions and 34 deletions

View File

@@ -20,6 +20,7 @@
#include "../lib/campaign/CampaignState.h"
#include "../lib/entities/hero/CHeroHandler.h"
#include "../lib/entities/hero/CHeroClass.h"
#include "../lib/entities/ResourceTypeHandler.h"
#include "../lib/gameState/CGameState.h"
#include "../lib/mapping/CMapInfo.h"
#include "../lib/mapping/CMapHeader.h"
@@ -709,7 +710,7 @@ void CVCMIServer::setPlayerHandicap(PlayerColor color, Handicap handicap)
return;
}
for(auto & res : EGameResID::ALL_RESOURCES())
for(auto & res : LIBRARY->resourceTypeHandler->getAllObjects())
if(handicap.startBonus[res] != 0)
{
str.appendRawString(" ");
@@ -1008,7 +1009,7 @@ void CVCMIServer::multiplayerWelcomeMessage()
str.appendRawString(" ");
str.appendName(pi.first);
str.appendRawString(":");
for(auto & res : EGameResID::ALL_RESOURCES())
for(auto & res : LIBRARY->resourceTypeHandler->getAllObjects())
if(pi.second.handicap.startBonus[res] != 0)
{
str.appendRawString(" ");