From 38dddf0c4fbb0429103f95767e0a6bcd8ab18fa2 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 26 Oct 2022 19:00:36 +1000 Subject: [PATCH] Don't calculate lookahead unnecessarily --- src/game/bondmove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/bondmove.c b/src/game/bondmove.c index 221825844..fc85b9cd7 100644 --- a/src/game/bondmove.c +++ b/src/game/bondmove.c @@ -1572,7 +1572,7 @@ void bmoveProcessInput(bool allowc1x, bool allowc1y, bool allowc1buttons, bool i offbike = g_Vars.currentplayer->bondmovemode == MOVEMODE_WALK || g_Vars.currentplayer->bondmovemode == MOVEMODE_GRAB; - if (g_Vars.currentplayer->lookaheadcentreenabled) { + if (movedata.canlookahead && g_Vars.currentplayer->automovecentreenabled) { if (g_Vars.lvframenum != g_Vars.currentplayer->lookaheadframe && g_Vars.currentplayernum == (g_Vars.lvframenum & 3)) { g_Vars.currentplayer->cachedlookahead = bmoveCalculateLookahead();