From 66c35afc0817c6fdbd1966006735864f8b2d62d3 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 3 Aug 2016 11:04:38 +1000 Subject: [PATCH] Fix references to .movetype --- qcsrc/common/physics/player.qh | 2 +- qcsrc/ecs/systems/sv_physics.qc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/physics/player.qh b/qcsrc/common/physics/player.qh index f1553f2f1..aac321813 100644 --- a/qcsrc/common/physics/player.qh +++ b/qcsrc/common/physics/player.qh @@ -245,7 +245,7 @@ STATIC_INIT(PHYS_INPUT_BUTTON_JETPACK) #elif defined(SVQC) #define PHYS_FIXANGLE(s) ((s).fixangle) - #define PHYS_MOVETYPE(s) ((s).movetype) + #define PHYS_MOVETYPE(s) ((s).move_movetype) bool Physics_Valid(string thecvar); diff --git a/qcsrc/ecs/systems/sv_physics.qc b/qcsrc/ecs/systems/sv_physics.qc index 0df3411c1..fe053a22e 100644 --- a/qcsrc/ecs/systems/sv_physics.qc +++ b/qcsrc/ecs/systems/sv_physics.qc @@ -40,10 +40,10 @@ void sys_phys_pregame_hold(entity this) const bool allowed_to_move = (time >= game_starttime); if (!allowed_to_move) { this.velocity = '0 0 0'; - this.movetype = MOVETYPE_NONE; + set_movetype(this, MOVETYPE_NONE); this.disableclientprediction = 2; } else if (this.disableclientprediction == 2) { - if (this.movetype == MOVETYPE_NONE) { this.movetype = MOVETYPE_WALK; } + if (this.move_movetype == MOVETYPE_NONE) { set_movetype(this, MOVETYPE_WALK); } this.disableclientprediction = 0; } } -- 2.39.2