diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-18 02:57:54 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-18 02:57:54 +0200 |
commit | e9a567034818c5e3338120958061e4a4278d97da (patch) | |
tree | 20293ced9c835a859071400fdbb3338b90159846 /src/extras | |
parent | cc5af26417d446ccadb6a8f885926c734d29131f (diff) |
PlayerInfo functions reordered into original order, FindPlayer... functions moved to PlayerInfo, improved CVector <-> RwV3d conversion, small fixes
Diffstat (limited to 'src/extras')
-rw-r--r-- | src/extras/screendroplets.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/extras/screendroplets.cpp b/src/extras/screendroplets.cpp index 2d34cdcb..3f91a754 100644 --- a/src/extras/screendroplets.cpp +++ b/src/extras/screendroplets.cpp @@ -384,9 +384,9 @@ ScreenDroplets::ProcessCameraMovement(void) ms_prevCamUp = camUp; ms_prevCamPos = camPos; - ms_screenMoveDelta.x = -RwV3dDotProduct(&camMat->right, (RwV3d*)&ms_camMoveDelta); - ms_screenMoveDelta.y = RwV3dDotProduct(&camMat->up, (RwV3d*)&ms_camMoveDelta); - ms_screenMoveDelta.z = RwV3dDotProduct(&camMat->at, (RwV3d*)&ms_camMoveDelta); + ms_screenMoveDelta.x = -RwV3dDotProduct(&camMat->right, &ms_camMoveDelta); + ms_screenMoveDelta.y = RwV3dDotProduct(&camMat->up, &ms_camMoveDelta); + ms_screenMoveDelta.z = RwV3dDotProduct(&camMat->at, &ms_camMoveDelta); ms_screenMoveDelta *= 10.0f; ms_screenMoveDist = ms_screenMoveDelta.Magnitude2D(); |