Fix broken backward spectate camera after switching to soccer one

This commit is contained in:
Benau 2020-03-29 10:34:06 +08:00
parent da4b985b8f
commit 76c78b82d8

View File

@ -1440,10 +1440,10 @@ void ClientLobby::changeSpectateTarget(PlayerAction action, int value,
if (action == PA_LOOK_BACK)
{
if (cam->getMode() == Camera::CM_REVERSE)
cam->setMode(cam->getPreviousMode());
else
if (cam->getMode() == Camera::CM_NORMAL)
cam->setMode(Camera::CM_REVERSE);
else
cam->setMode(Camera::CM_NORMAL);
return;
}
if (action == PA_ACCEL)