From f02bbd42aaa6794e699fc1b05f64877b1c66dea0 Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Wed, 20 Mar 2013 12:45:43 +1030 Subject: [PATCH] pmove: make player_mins/maxs const Signed-off-by: Kevin Shanahan --- QW/client/pmove.h | 4 ++-- QW/common/pmove.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/QW/client/pmove.h b/QW/client/pmove.h index fd5f22a..4566ae3 100644 --- a/QW/client/pmove.h +++ b/QW/client/pmove.h @@ -84,8 +84,8 @@ extern playermove_t pmove; extern int onground; extern int waterlevel; extern int watertype; -extern vec3_t player_mins; -extern vec3_t player_maxs; +extern const vec3_t player_mins; +extern const vec3_t player_maxs; void PlayerMove(void); diff --git a/QW/common/pmove.c b/QW/common/pmove.c index 5bca173..0953eea 100644 --- a/QW/common/pmove.c +++ b/QW/common/pmove.c @@ -35,8 +35,8 @@ int watertype; static float frametime; -vec3_t player_mins = { -16, -16, -24 }; -vec3_t player_maxs = { 16, 16, 32 }; +const vec3_t player_mins = { -16, -16, -24 }; +const vec3_t player_maxs = { 16, 16, 32 }; // #define PM_GRAVITY 800 // #define PM_STOPSPEED 100