Kailric
Jack of All Trades
noice!
Actually, hold up, barbarian player isn't set correctly, I worked up a fixed and am about to push it.
Code:
if (!bScenario)
{
//TKs Code moved here to prevent duplicate players in scenarios
// < JAnimals Mod Start >
createNationStatePlayer();
bool bAnimals = true;
if (bAnimals)
{
createBarbarianPlayer();
}
// < JAnimals Mod End >
initFreeState();
}
else
{
if (getBarbarianPlayer() == NO_PLAYER)
{
for (int iP=0; iP < MAX_PLAYERS; iP++)
{
CvPlayer& player = GET_PLAYER((PlayerTypes)iP);
if (player.isAlive())
{
if (player.getCivilizationType() == (CivilizationTypes) GC.getXMLval(XML_BARBARIAN_CIVILIZATION))
{
setBarbarianPlayer(player.getID());
return;
}
}
}
}
FAssert(getBarbarianPlayer() != NO_PLAYER);
}
The Scenario doesn't do a failed assert so I am assuming it is working correctly. Headed to bed so want check further.