From bc4c08fe2fbe9ad7729d63f6c660bdf1d2e69845 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Fri, 18 Aug 2023 13:58:33 +0200 Subject: [PATCH] port: only player 1 gets mouselook and only when aiming is allowed --- 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 70249bd3e..c077d4749 100644 --- a/src/game/bondmove.c +++ b/src/game/bondmove.c @@ -697,7 +697,7 @@ void bmoveProcessInput(bool allowc1x, bool allowc1y, bool allowc1buttons, bool i movedata.analogwalk = movedata.c1stickysafe; #ifndef PLATFORM_N64 - if ((PLAYERCOUNT() == 1) && inputMouseIsLocked()) { + if (inputMouseIsLocked() && g_Vars.currentplayernum == 0 && (allowc1x || allowc1y)) { inputMouseGetScaledDelta(&movedata.freelookdx, &movedata.freelookdy); } #endif