Fix issue with weapon wheel cursor locking to one side or other

This commit is contained in:
Simon 2022-03-11 20:34:13 +00:00
parent 4eda77649f
commit b5e1628dbf
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.drbeef.ioq3quest"
android:installLocation="preferExternal"
android:versionCode="30"
android:versionName="0.21.1">
android:versionCode="31"
android:versionName="0.21.2">
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" />
<uses-feature android:glEsVersion="0x00030001" />
<!-- <uses-feature android:name="oculus.software.overlay_keyboard" android:required="false"/>-->

View File

@ -2074,7 +2074,7 @@ void CG_DrawHolsteredWeapons( void )
VectorMA(holsterOrigin, ((DIST*2.0f)*frac), holsterForward, holsterOrigin);
VectorCopy(holsterOrigin, selectorOrigin);
float x = ((holsterAngles[YAW] - controllerAngles[YAW]) / 22.5f);
float x = (sinf(DEG2RAD(holsterAngles[YAW] - controllerAngles[YAW])) / sinf(DEG2RAD(22.5f)));
float y = ((holsterAngles[PITCH] - controllerAngles[PITCH]) / 22.5f);
float len = length(x, y);
if (len > 1.0f)