diff options
author | aap <aap@papnet.eu> | 2020-06-25 15:12:57 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-06-25 15:13:08 +0200 |
commit | cafe4d6f0cafaa431dcf4bce7a96af73fc833ef8 (patch) | |
tree | 8ec14d3e008ab98550c204a6ea7789721cbfe944 /src | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
download | re3-cafe4d6f0cafaa431dcf4bce7a96af73fc833ef8.tar re3-cafe4d6f0cafaa431dcf4bce7a96af73fc833ef8.tar.gz re3-cafe4d6f0cafaa431dcf4bce7a96af73fc833ef8.tar.bz2 re3-cafe4d6f0cafaa431dcf4bce7a96af73fc833ef8.tar.lz re3-cafe4d6f0cafaa431dcf4bce7a96af73fc833ef8.tar.xz re3-cafe4d6f0cafaa431dcf4bce7a96af73fc833ef8.tar.zst re3-cafe4d6f0cafaa431dcf4bce7a96af73fc833ef8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/FileLoader.cpp | 2 | ||||
-rw-r--r-- | src/peds/Ped.cpp | 6 | ||||
-rw-r--r-- | src/render/2dEffect.h | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp index 6e7188c5..a1fb5ace 100644 --- a/src/core/FileLoader.cpp +++ b/src/core/FileLoader.cpp @@ -977,7 +977,7 @@ CFileLoader::Load2dEffect(const char *line) &effect->attractor.dir.y, &effect->attractor.dir.z, &probability); - effect->attractor.flags = flags; + effect->attractor.type = flags; effect->attractor.probability = probability; break; } diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 254f89a6..cf254cf4 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -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); diff --git a/src/render/2dEffect.h b/src/render/2dEffect.h index 2a71a8d5..4256a0ac 100644 --- a/src/render/2dEffect.h +++ b/src/render/2dEffect.h @@ -25,8 +25,8 @@ enum { }; enum { - ATTRACTORFLAG_ICECREAM, - ATTRACTORFLAG_STARE + ATTRACTORTYPE_ICECREAM, + ATTRACTORTYPE_STARE }; enum { @@ -60,7 +60,7 @@ public: }; struct Attractor { CVector dir; - uint8 flags; + int8 type; uint8 probability; }; |