From 674f7d8d217f613506dfe45110d666220bcb6335 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 16 Jul 2017 03:56:15 +1000 Subject: [PATCH] Port buttonchat, buttonuse and cursor_active to ClientState --- qcsrc/common/physics/player.qh | 6 +++--- qcsrc/server/playerdemo.qc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcsrc/common/physics/player.qh b/qcsrc/common/physics/player.qh index 39c082665..137da56b4 100644 --- a/qcsrc/common/physics/player.qh +++ b/qcsrc/common/physics/player.qh @@ -269,9 +269,9 @@ STATIC_INIT(PHYS_INPUT_BUTTON_DODGE) #define PHYS_INPUT_BUTTON_BUTTON6(s) (CS(s).button6) #define PHYS_INPUT_BUTTON_BUTTON7(s) (CS(s).button7) #define PHYS_INPUT_BUTTON_BUTTON8(s) (CS(s).button8) - #define PHYS_INPUT_BUTTON_BUTTON_USE(s) ((s).buttonuse) - #define PHYS_INPUT_BUTTON_BUTTON_CHAT(s) ((s).buttonchat) - #define PHYS_INPUT_BUTTON_BUTTON_PRYDON(s) ((s).cursor_active) + #define PHYS_INPUT_BUTTON_BUTTON_USE(s) (CS(s).buttonuse) + #define PHYS_INPUT_BUTTON_BUTTON_CHAT(s) (CS(s).buttonchat) + #define PHYS_INPUT_BUTTON_BUTTON_PRYDON(s) (CS(s).cursor_active) #define PHYS_INPUT_BUTTON_BUTTON9(s) (CS(s).button9) #define PHYS_INPUT_BUTTON_BUTTON10(s) (CS(s).button10) #define PHYS_INPUT_BUTTON_BUTTON11(s) (CS(s).button11) diff --git a/qcsrc/server/playerdemo.qc b/qcsrc/server/playerdemo.qc index 357f73c97..427e5c32d 100644 --- a/qcsrc/server/playerdemo.qc +++ b/qcsrc/server/playerdemo.qc @@ -64,7 +64,7 @@ void playerdemo_open_write(entity this, string f) PLAYERDEMO_FIELD(CS(ent),func,float,button3) /* TODO: PHYS_INPUT_BUTTON_ATCK2 */ \ PLAYERDEMO_FIELD(CS(ent),func,float,button5) /* TODO: PHYS_INPUT_BUTTON_CROUCH */ \ PLAYERDEMO_FIELD(CS(ent),func,float,button6) /* TODO: PHYS_INPUT_BUTTON_HOOK */ \ - PLAYERDEMO_FIELD(ent,func,float,buttonuse) /* TODO: PHYS_INPUT_BUTTON_USE */ \ + PLAYERDEMO_FIELD(CS(ent),func,float,buttonuse) /* TODO: PHYS_INPUT_BUTTON_USE */ \ PLAYERDEMO_FIELD(ent,func,float,flags) \ // end of list -- 2.39.2