summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Door.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-02-22 23:42:10 +0100
committereray orçunus <erayorcunus@gmail.com>2020-02-22 23:48:21 +0100
commitb2d062ef2dc5d117fa11a56d56a2ac8531c7a187 (patch)
treee90bb131f188deae507206838c739845a5698e97 /src/vehicles/Door.cpp
parentFix police radio condition (diff)
downloadre3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar.gz
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar.bz2
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar.lz
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar.xz
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar.zst
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Door.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Door.cpp b/src/vehicles/Door.cpp
index 2d47b3e9..c569be59 100644
--- a/src/vehicles/Door.cpp
+++ b/src/vehicles/Door.cpp
@@ -47,9 +47,9 @@ CDoor::Process(CVehicle *vehicle)
case 2: // z-axis
if(m_nDirn)
- fSpeedDiff = -(vecSpeedDiff.x + vecSpeedDiff.y);
+ fSpeedDiff = -(vecSpeedDiff.y + vecSpeedDiff.x);
else
- fSpeedDiff = vecSpeedDiff.x + vecSpeedDiff.y;
+ fSpeedDiff = vecSpeedDiff.y - vecSpeedDiff.x;
break;
}
fSpeedDiff = clamp(fSpeedDiff, -0.2f, 0.2f);