port: disable camspy lookahead

This commit is contained in:
fgsfds committed 2023-08-19 14:21:33 +02:00
1 parent b7f77498b3
commit 6f3f48d1e9
1 file changed
+2
+2
View File
@@ -958,6 +958,7 @@ void eyespyProcessInput(bool allowbuttons)
// Make eyespy look horizontally
if (domovecentre) {
if (g_Vars.currentplayer->eyespy->verta > 0.0f && forwardspeed != 0) {
#ifdef PLATFORM_N64
if (g_Vars.currentplayer->eyespy->verta < 180.0f) {
tmp = g_Vars.currentplayer->eyespy->verta;
@@ -973,6 +974,7 @@ void eyespyProcessInput(bool allowbuttons)
g_Vars.currentplayer->eyespy->verta += tmp;
}
}
#endif
g_Vars.currentplayer->eyespy->cosverta = cosf(g_Vars.currentplayer->eyespy->verta * 0.017453292384744f);
g_Vars.currentplayer->eyespy->sinverta = sinf(g_Vars.currentplayer->eyespy->verta * 0.017453292384744f);