port: only player 1 gets mouselook and only when aiming is allowed

This commit is contained in:
fgsfds 2023-08-18 13:58:33 +02:00
parent b906f77b37
commit bc4c08fe2f
1 changed files with 1 additions and 1 deletions

View File

@ -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