Merge pull request #63 from tmyqlfpir/tweak-pickup-threshold-degrees

Adjust pickup degrees threshold
This commit is contained in:
fgsfds 2023-08-21 00:55:52 +02:00 committed by GitHub
commit 81902e1b96
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;
}