rename attractor flag to type

This commit is contained in:
aap committed 2020-06-25 15:13:08 +02:00
1 parent fe77b2ac53
commit cafe4d6f0c
3 files changed
+7 -7

No files matched your search

+3 -3
View File
@@ -8644,11 +8644,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);