summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-07 11:13:12 +0200
committeraap <aap@papnet.eu>2019-07-07 11:13:12 +0200
commit219a65b81a1141d6475fc48bdc6251bd20e44a70 (patch)
tree46cd85dd7b14ab85d23b0b39ffda41e08c1416a7 /src/control
parentmade code use TimeStepIn(Milli)Seconds; purged unnecessary inlines (diff)
downloadre3-219a65b81a1141d6475fc48bdc6251bd20e44a70.tar
re3-219a65b81a1141d6475fc48bdc6251bd20e44a70.tar.gz
re3-219a65b81a1141d6475fc48bdc6251bd20e44a70.tar.bz2
re3-219a65b81a1141d6475fc48bdc6251bd20e44a70.tar.lz
re3-219a65b81a1141d6475fc48bdc6251bd20e44a70.tar.xz
re3-219a65b81a1141d6475fc48bdc6251bd20e44a70.tar.zst
re3-219a65b81a1141d6475fc48bdc6251bd20e44a70.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp2
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;
}