From 27b11900bac92c1d1295db6b4ed915e3df024e96 Mon Sep 17 00:00:00 2001 From: Toumal Date: Sun, 2 Mar 2014 19:07:12 +0100 Subject: [PATCH] Made spectator mouse invert work as expected from other games --- Sources/Client/Client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/Client/Client.cpp b/Sources/Client/Client.cpp index d542a5af..71b647e8 100644 --- a/Sources/Client/Client.cpp +++ b/Sources/Client/Client.cpp @@ -872,8 +872,9 @@ namespace spades { if(world->GetLocalPlayer() && world->GetLocalPlayer()->GetTeamId() >= 2 && followingPlayerId == world->GetLocalPlayerIndex()){ - // invert dir - x = -x; y = -y; + x = -x; + if (!cg_invertMouseY) + y = -y; } followYaw -= x * 0.003f; followPitch -= y * 0.003f;