From c84ad4aabbc591eba9285167b4580632a90e7bc7 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 28 Sep 2024 00:12:57 +0200 Subject: [PATCH] smol director stuffs --- src/k_director.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/k_director.c b/src/k_director.c index 51406cf07..3c5938713 100644 --- a/src/k_director.c +++ b/src/k_director.c @@ -23,7 +23,7 @@ #define BOREDOMTIME 3 * TICRATE / 2 // how long until players considered far apart? #define TRANSFERTIME TICRATE // how long to delay reaction shots? #define BREAKAWAYDIST 2000 // how *far* until players considered far apart? -#define WALKBACKDIST 600 // how close should a trailing player be before we switch? +#define WALKBACKDIST 400 // how close should a trailing player be before we switch? #define PINCHDIST 20000 // how close should the leader be to be considered "end of race"? struct directorinfo @@ -377,6 +377,12 @@ void K_UpdateDirector(void) break; } + // if this is a splitscreen player, try next pair + if (P_IsDisplayPlayer(&players[target])) + { + continue; + } + // if we're certain the back half of the pair is actually in this position, try to switch if (!players[target].kartstuff[k_positiondelay]) {