Enable reverse-iterating through viewpoints with shift+F12

This commit is contained in:
LJ Sonic 2022-11-16 10:21:39 +01:00
parent aba5b953b2
commit d34d90b78b

View file

@ -1978,9 +1978,9 @@ static boolean ViewpointSwitchResponder(event_t *ev)
// spy mode
do
{
displayplayer++;
if (displayplayer == MAXPLAYERS)
displayplayer = 0;
// Wrap in both directions
displayplayer += shiftdown ? -1 : 1;
displayplayer = (displayplayer + MAXPLAYERS) % MAXPLAYERS;
if (!playeringame[displayplayer])
continue;