Adjust pickup degrees threshold

This commit is contained in:
tmyqlfpir 2023-08-21 07:45:38 +10:00 committed by GitHub
parent b9944e8669
commit bf43f32946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -17598,7 +17598,11 @@ s32 objTestForPickup(struct prop *prop)
}
}
if (g_Vars.currentplayer->vv_verta * M_BADTAU / 360.0f < -0.7852731347084f) {
#ifndef PLATFORM_N64 // adjust pickup threshold (from -45 to -60)
if (g_Vars.currentplayer->vv_verta * M_BADTAU / 360.0f < -60.0f * M_BADTAU / 360.0f) {
#else
if (g_Vars.currentplayer->vv_verta * M_BADTAU / 360.0f < -45.0f * M_BADTAU / 360.0f) {
#endif
if (g_Vars.currentplayer->magnetattracttime < 0) {
return TICKOP_NONE;
}