Page 1 of 1

FUNCTION CohesionTest code error?

Posted: Sun Mar 01, 2020 11:23 pm
by eblingus
in FUNCTION CohesionTest, in section "// Troops fighting nasty impact types"
One of the three possible conditions is:
if (IsUnitSquadType(me, "Heavy_Chariots") == 1)
{
uniqueModifier = 1;
PrintStringLiteralX(UIString, 0, "\n"); // v1.5.4 addition
PrintStringX(UIString, 0, "IDS_CT_HEAVY_CHARIOTS"); // v1.5.4 addition
Log("Fighting heavy chariots", me);
}

This looks to me to be an error in the code. I think it is supposed to be "if (IsUnitSquadType(enemy, "Heavy_Chariots") == 1)" ?
That is the way the other modifiers in this section work.

Re: FUNCTION CohesionTest code error?

Posted: Mon Mar 02, 2020 10:41 am
by rbodleyscott
Many thanks indeed. Will look into it and correct it.

Re: FUNCTION CohesionTest code error?

Posted: Tue Mar 03, 2020 5:03 am
by eblingus
ya welcome :)