Made spectator mouse invert work as expected from other games

This commit is contained in:
Toumal 2014-03-02 19:07:12 +01:00
parent 6f3ebca342
commit 27b11900ba

View File

@ -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;