diff options
author | aap <aap@papnet.eu> | 2019-07-07 11:13:12 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-07 11:13:12 +0200 |
commit | 219a65b81a1141d6475fc48bdc6251bd20e44a70 (patch) | |
tree | 46cd85dd7b14ab85d23b0b39ffda41e08c1416a7 /src/control | |
parent | 533f265f55ffea86a2090e3cd44f9efe69df8b57 (diff) |
finished CPhysical
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/Script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index af151802..5e7f4936 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -144,7 +144,7 @@ void CUpsideDownCarCheck::Init() bool CUpsideDownCarCheck::IsCarUpsideDown(int32 id) { CVehicle* v = CPools::GetVehiclePool()->GetAt(id); - return v->GetMatrix().GetUp()->z <= -0.97f && + return v->GetUp().z <= -0.97f && v->GetMoveSpeed().Magnitude() < 0.01f && v->GetTurnSpeed().Magnitude() < 0.02f; } |