From 2dd9566b5abfeae3978f9a1c3811e9caf524f4ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Fri, 3 Jan 2014 19:49:02 +0200 Subject: [PATCH] =?UTF-8?q?Fixed|libcommon:=20Don=E2=80=99t=20check=20cont?= =?UTF-8?q?rol=20input=20of=20remote=20players?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remote players are moved according to a smoothed path of received coordinates, not any control input values. --- doomsday/plugins/common/src/p_user.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doomsday/plugins/common/src/p_user.c b/doomsday/plugins/common/src/p_user.c index bdeb47a630..b7d0fcfd84 100644 --- a/doomsday/plugins/common/src/p_user.c +++ b/doomsday/plugins/common/src/p_user.c @@ -1620,6 +1620,12 @@ void P_PlayerThinkLookYaw(player_t* player, timespan_t ticLength) if(!plr->mo || player->playerState == PST_DEAD || player->viewLock) return; + if(IS_CLIENT && playerNum != CONSOLEPLAYER) + { + // This is only for the local player. + return; + } + // Turn the head? P_PlayerThinkHeadTurning(playerNum, ticLength); @@ -1673,6 +1679,12 @@ void P_PlayerThinkLookPitch(player_t* player, timespan_t ticLength) if(!plr->mo || player->playerState == PST_DEAD || player->viewLock) return; // Nothing to control. + if(IS_CLIENT && playerNum != CONSOLEPLAYER) + { + // This is only for the local player. + return; + } + // The absolute look pitch overrides CTL_LOOK. if(P_IsControlBound(playerNum, CTL_LOOK_PITCH)) {