From: Mario Date: Fri, 28 Jul 2017 20:21:18 +0000 (+1000) Subject: Only run PM_UpdateButtons on real clients (bots don't receive client input) X-Git-Tag: xonotic-v0.8.5~2558 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=29dc3bb417df98fc9262d0ed42168fa734c07652;p=xonotic%2Fxonotic-data.pk3dir.git Only run PM_UpdateButtons on real clients (bots don't receive client input) --- diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index b73942b87..ac4c97618 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -813,7 +813,8 @@ void CSQC_ClientMovement_PlayerMove_Frame(entity this) { #ifdef SVQC // needs to be called before physics are run! - PM_UpdateButtons(this, CS(this)); + if(IS_REAL_CLIENT(this)) + PM_UpdateButtons(this, CS(this)); #endif sys_phys_update(this, PHYS_INPUT_TIMELENGTH);