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

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