Allow using pause action in spectate for gamepad only controlling

This commit is contained in:
Benau 2020-04-03 13:35:47 +08:00
parent b7adc72cb9
commit 22ff215d15

View File

@ -1438,6 +1438,11 @@ void ClientLobby::changeSpectateTarget(PlayerAction action, int value,
if (!pressed_down && type == Input::IT_STICKMOTION)
return;
if (action == PA_PAUSE_RACE)
{
StateManager::get()->escapePressed();
return;
}
if (action == PA_LOOK_BACK)
{
if (cam->getMode() == Camera::CM_NORMAL)