common: constify vec3_origin

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-08-20 13:30:05 +09:30
parent 51419621ec
commit 5facda6ff9
5 changed files with 5 additions and 5 deletions

View File

@ -111,7 +111,7 @@ PrintModelInfo(const bspdata_t *bsp)
* Quick hack to check verticies of faces lie on the correct plane * Quick hack to check verticies of faces lie on the correct plane
*/ */
#define ON_EPSILON 0.01 #define ON_EPSILON 0.01
vec3_t vec3_origin = { 0, 0, 0 }; const vec3_t vec3_origin = { 0, 0, 0 };
static void static void
CheckBSPFacesPlanar(const bspdata_t *bsp) CheckBSPFacesPlanar(const bspdata_t *bsp)
{ {

View File

@ -20,7 +20,7 @@
#include <common/cmdlib.h> #include <common/cmdlib.h>
#include <common/mathlib.h> #include <common/mathlib.h>
vec3_t vec3_origin = { 0, 0, 0 }; const vec3_t vec3_origin = { 0, 0, 0 };
double double

View File

@ -39,7 +39,7 @@ typedef vec_t vec3_t[3];
#define Q_PI 3.14159265358979323846 #define Q_PI 3.14159265358979323846
extern vec3_t vec3_origin; extern const vec3_t vec3_origin;
#define EQUAL_EPSILON 0.001 #define EQUAL_EPSILON 0.001

View File

@ -97,7 +97,7 @@ mapdata_t map;
mapentity_t *pWorldEnt; mapentity_t *pWorldEnt;
// Mathlib.c // Mathlib.c
vec3_t vec3_origin = { 0, 0, 0 }; const vec3_t vec3_origin = { 0, 0, 0 };
// util.c // util.c
FILE *logfile; FILE *logfile;

View File

@ -187,7 +187,7 @@ typedef float vec_t;
#endif #endif
typedef vec_t vec3_t[3]; typedef vec_t vec3_t[3];
extern vec3_t vec3_origin; extern const vec3_t vec3_origin;
bool VectorCompare(const vec3_t v1, const vec3_t v2); bool VectorCompare(const vec3_t v1, const vec3_t v2);