diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-02-22 23:42:10 +0100 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-02-22 23:48:21 +0100 |
commit | b2d062ef2dc5d117fa11a56d56a2ac8531c7a187 (patch) | |
tree | e90bb131f188deae507206838c739845a5698e97 /src/vehicles/Door.cpp | |
parent | Fix police radio condition (diff) | |
download | re3-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.cpp | 4 |
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); |