mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-08 13:06:13 -04:00
Don't calculate lookahead unnecessarily
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user