- spycancel improvement by Edward-san.

This commit is contained in:
Christoph Oelckers 2013-06-24 22:50:24 +02:00
parent 94a3d92f93
commit 4189092db8

View file

@ -859,10 +859,10 @@ static void ChangeSpy (int changespy)
// Otherwise, cycle to the next player.
bool checkTeam = !demoplayback && deathmatch;
int pnum = int(players[consoleplayer].camera->player - players);
if (changespy == SPY_CANCEL) {
pnum = consoleplayer;
} else {
int pnum = consoleplayer;
if (changespy != SPY_CANCEL)
{
pnum = int(players[consoleplayer].camera->player - players);
int step = (changespy == SPY_NEXT) ? 1 : -1;
do