From 29dc3bb417df98fc9262d0ed42168fa734c07652 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 29 Jul 2017 06:21:18 +1000 Subject: [PATCH] Only run PM_UpdateButtons on real clients (bots don't receive client input) --- qcsrc/common/physics/player.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2