From 4189092db8e697e568f4dddf20e17b2e9bd8b7a5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 24 Jun 2013 22:50:24 +0200 Subject: [PATCH] - spycancel improvement by Edward-san. --- src/g_game.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/g_game.cpp b/src/g_game.cpp index 10ab6afaf..0db149b0b 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -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