is zero one of the numbers that can be returned by getSorenRandNum? ie does getSorenRandNum(3) produce a number between 1 and 3 or 0 and 3?
szBuffer = gDLL->getText("TXT_KEY_MISC_SOMEONE_DECLARED_WAR", GET_PLAYER((PlayerTypes)getID()).getCivilizationDescription(), GET_PLAYER((PlayerTypes)eTeam).getCivilizationDescription());
szBuffer = gDLL->getText("TXT_KEY_MISC_SOMEONE_DECLARED_WAR", GET_PLAYER((PlayerTypes)getID()).getCivilizationShortDescription(), GET_PLAYER((PlayerTypes)eTeam).getCivilizationShortDescription());
%s1_PlyrName [NUM1:has:has:have:have] declared war on %s2_PlyrName!
does anyone know what causes the "civ x has declared war on civ x" bug? it has appeared in my current project.
eCaptureUnitType = ((eCapturingPlayer != NO_PLAYER) ? getCaptureUnitType(GET_PLAYER(eCapturingPlayer).getCivilizationType()) : NO_UNIT);
if ((eCapturingPlayer != NO_PLAYER) && (eCaptureUnitType != NO_UNIT) && !(GET_PLAYER(eCapturingPlayer).isBarbarian()))
{
if (eCaptureUnitType == UNIT_WORKER && GET_PLAYER(eCapturingPlayer).getCivics(2) == CIVIC_SLAVERY)
{
eCaptureUnitType = UNIT_SLAVE;
}
if (eCaptureUnitType == UNIT_WORKER && GET_PLAYER(eCapturingPlayer).getCivics((CivicOptionTypes)2) == CIVIC_SLAVERY)
{
eCaptureUnitType = ((UnitTypes)UNIT_SLAVE);
}
if ((GET_PLAYER(getOwnerINLINE()).getUnitClassCount(eUnitClass)) >= ((pCity->getNumBonuses((BonusTypes)GC.getUnitInfo(eUnit).getPrereqAndBonus())) * 9))
{
return false;
}