rename attractor flag to type

This commit is contained in:
aap
2020-06-25 15:12:57 +02:00
parent 077bcf1c82
commit 2b21f92347
3 changed files with 7 additions and 7 deletions

View File

@ -9867,11 +9867,11 @@ CPed::LookForInterestingNodes(void)
return false;
}
switch (effect->attractor.flags) {
case ATTRACTORFLAG_ICECREAM:
switch (effect->attractor.type) {
case ATTRACTORTYPE_ICECREAM:
SetInvestigateEvent(EVENT_ICECREAM, CVector2D(effectPos), 0.1f, 15000, angleToFace);
break;
case ATTRACTORFLAG_STARE:
case ATTRACTORTYPE_STARE:
SetInvestigateEvent(EVENT_SHOPSTALL, CVector2D(effectPos), 1.0f,
CGeneral::GetRandomNumberInRange(8000, 10 * effect->attractor.probability + 8500),
angleToFace);