From 57cf6dab26e356772e36537fd2af86bc8b874cd1 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 26 Feb 2023 21:20:16 -0800 Subject: [PATCH] Director: fix positiondelay debounce I'll be honest, this is hard to wrap my head around but it seems to be saying if the currently viewed player is not who we should be viewing, then switch to the new player even if the new player's position is fluctuating. --- src/k_director.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k_director.c b/src/k_director.c index 4f5737b4b..9a0e79608 100644 --- a/src/k_director.c +++ b/src/k_director.c @@ -291,7 +291,7 @@ void K_UpdateDirector(void) } // even if we're not certain, if we're certain we're watching the WRONG player, try to switch - if (players[*displayplayerp].position != targetposition+1 && !players[target].positiondelay) + if (players[*displayplayerp].position != targetposition+1 && !players[*displayplayerp].positiondelay) { K_DirectorSwitch(target, false); }