#endif
.vector movement_old;
-.float buttons_old;
.vector v_angle_old;
.string lastclassname;
#define PHYS_INPUT_FRAMETIME serverdeltatime
#define PHYS_INPUT_MOVEVALUES(s) input_movevalues
+ #define PHYS_CS(s) (s)
#define PHYS_INPUT_BUTTON_BUTTON1(s) boolean(input_buttons & BIT(0))
#define PHYS_INPUT_BUTTON_BUTTON2(s) boolean(input_buttons & BIT(1))
#define PHYS_INPUT_TIMELENGTH frametime
#define PHYS_INPUT_FRAMETIME sys_frametime
- #define PHYS_INPUT_MOVEVALUES(s) ((s).movement)
+ #define PHYS_INPUT_MOVEVALUES(s) CS(s).movement
+ #define PHYS_CS(s) CS(s)
#define PHYS_INPUT_BUTTON_BUTTON1(s) (CS(s).button0)
#define PHYS_INPUT_BUTTON_BUTTON2(s) (CS(s).button2)
#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)