- Duke: Don't allow looking left/right when on a security camera screen.

This commit is contained in:
Mitchell Richters 2020-09-23 15:00:33 +10:00
parent 88608e0682
commit 53038e1b29

View file

@ -972,6 +972,12 @@ static void FinalizeInput(int playerNum, InputPacket& input, bool vehicle)
loc.q16horz = input.q16horz = 0; loc.q16horz = input.q16horz = 0;
} }
} }
// Remove look left/right bits if looking through a camera.
if (p->newowner != -1)
{
loc.actions &= ~(SB_LOOK_LEFT | SB_LOOK_RIGHT);
}
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------