diff --git a/doomsday/plugins/common/src/p_user.c b/doomsday/plugins/common/src/p_user.c index f3b9121581..0d2305652b 100644 --- a/doomsday/plugins/common/src/p_user.c +++ b/doomsday/plugins/common/src/p_user.c @@ -1644,6 +1644,8 @@ void P_PlayerThinkLookYaw(player_t* player) float offsetSensitivity = 100; /// @todo Should be done engine-side, mouse sensitivity! float vel, off, turnSpeedPerTic; + if(IS_DEDICATED) return; + if(!plr->mo || player->playerState == PST_DEAD || player->viewLock) return; @@ -1683,6 +1685,8 @@ void P_PlayerThinkLookPitch(player_t* player, timespan_t ticLength) float vel, off; float offsetSensitivity = 100; /// @todo Should be done engine-side, mouse sensitivity! + if(IS_DEDICATED) return; + if(!plr->mo || player->playerState == PST_DEAD || player->viewLock) return; // Nothing to control. @@ -1732,11 +1736,7 @@ void P_PlayerThinkUpdateControls(player_t* player) playerbrain_t *brain = &player->brain; boolean oldAttack = brain->attack; - if(IS_DEDICATED) - { - // There are no players on the server that need control. - return; - } + if(IS_DEDICATED) return; // Check for speed. P_GetControlState(playerNum, CTL_SPEED, &vel, 0);