forked from Ports/perfect_dark
port: only player 1 gets mouselook and only when aiming is allowed
This commit is contained in:
1 parent
b906f77b37
commit
bc4c08fe2f
1 file changed
+1
-1
+1
-1
@@ -697,7 +697,7 @@ void bmoveProcessInput(bool allowc1x, bool allowc1y, bool allowc1buttons, bool i
|
|||||||
movedata.analogwalk = movedata.c1stickysafe;
|
movedata.analogwalk = movedata.c1stickysafe;
|
||||||
|
|
||||||
#ifndef PLATFORM_N64
|
#ifndef PLATFORM_N64
|
||||||
if ((PLAYERCOUNT() == 1) && inputMouseIsLocked()) {
|
if (inputMouseIsLocked() && g_Vars.currentplayernum == 0 && (allowc1x || allowc1y)) {
|
||||||
inputMouseGetScaledDelta(&movedata.freelookdx, &movedata.freelookdy);
|
inputMouseGetScaledDelta(&movedata.freelookdx, &movedata.freelookdy);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user