Skip to content

Commit 3333a11

Browse files
authored
Fix missing states in getPedControlState (#3785)
1 parent f1991d0 commit 3333a11

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Client/mods/deathmatch/logic/CClientPad.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,9 @@ bool CClientPad::GetControlState(const char* szName, CControllerState& State, bo
336336
return State.LeftShoulder2 == 255;
337337
break; // zoom out
338338
case 9:
339-
return false;
340-
break; // enter_exit
339+
return State.ButtonTriangle == 255; // enter_exit
341340
case 10:
342-
return false;
343-
break; // change_cam
341+
return State.Select == 255; // change_cam
344342
case 11:
345343
return State.ButtonSquare == 255;
346344
break; // jump
@@ -432,8 +430,7 @@ bool CClientPad::GetControlState(const char* szName, CControllerState& State, bo
432430
return State.RightShoulder2 == 255;
433431
break; // look right
434432
case 33:
435-
return false;
436-
break; // look behind
433+
return State.LeftShoulder2 == 255 && State.RightShoulder2 == 255; // look behind
437434
case 34:
438435
return false;
439436
break; // mouse look

0 commit comments

Comments
 (0)