]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Only run PM_UpdateButtons on real clients (bots don't receive client input)
authorMario <mario@smbclan.net>
Fri, 28 Jul 2017 20:21:18 +0000 (06:21 +1000)
committerMario <mario@smbclan.net>
Fri, 28 Jul 2017 20:21:18 +0000 (06:21 +1000)
qcsrc/common/physics/player.qc

index b73942b871db2ebfdd9b4e81a79a9ca97570c309..ac4c97618bd3fc38bd5446e956b1fd34c992a7c2 100644 (file)
@@ -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);