diff options
author | aap <aap@papnet.eu> | 2020-07-04 21:24:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-04 21:24:23 +0200 |
commit | 2c50cf8ac6a24129d63bd8ed5c42c2df14d51d66 (patch) | |
tree | 80309bd9483c238a85d37b3a90c1ab3b54b4bc28 /src/peds/PedAttractor.cpp | |
parent | Merge pull request #647 from Fire-Head/miami (diff) | |
parent | ice cream attractor + bike respray (diff) | |
download | re3-2c50cf8ac6a24129d63bd8ed5c42c2df14d51d66.tar re3-2c50cf8ac6a24129d63bd8ed5c42c2df14d51d66.tar.gz re3-2c50cf8ac6a24129d63bd8ed5c42c2df14d51d66.tar.bz2 re3-2c50cf8ac6a24129d63bd8ed5c42c2df14d51d66.tar.lz re3-2c50cf8ac6a24129d63bd8ed5c42c2df14d51d66.tar.xz re3-2c50cf8ac6a24129d63bd8ed5c42c2df14d51d66.tar.zst re3-2c50cf8ac6a24129d63bd8ed5c42c2df14d51d66.zip |
Diffstat (limited to 'src/peds/PedAttractor.cpp')
-rw-r--r-- | src/peds/PedAttractor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peds/PedAttractor.cpp b/src/peds/PedAttractor.cpp index 659a522b..db5f9e52 100644 --- a/src/peds/PedAttractor.cpp +++ b/src/peds/PedAttractor.cpp @@ -71,15 +71,15 @@ const C2dEffect* CVehicleToEffect::ChooseEffect(const CVector& pos) const return nil; if (DotProduct(pos - m_pVehicle->GetPosition(), m_pVehicle->GetRight()) > 0.0f) { if (DotProduct(pos - m_pVehicle->GetPosition(), m_pVehicle->GetForward()) > 0.0f) - return &m_effects[0]; + return &m_effects[1]; else - return &m_effects[2]; + return &m_effects[3]; } else { if (DotProduct(pos - m_pVehicle->GetPosition(), m_pVehicle->GetForward()) > 0.0f) - return &m_effects[1]; + return &m_effects[0]; else - return &m_effects[3]; + return &m_effects[2]; } } |