mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
Make the Test functions const-correct.
This commit is contained in:
parent
0e82b37001
commit
4d4bcaf3a3
2 changed files with 6 additions and 5 deletions
|
@ -100,8 +100,8 @@ extern qboolean extrasamples;
|
||||||
extern float minlights[MAX_MAP_FACES];
|
extern float minlights[MAX_MAP_FACES];
|
||||||
|
|
||||||
void LoadNodes (const char *file);
|
void LoadNodes (const char *file);
|
||||||
qboolean TestLine (lightinfo_t *l, vec3_t start, vec3_t stop);
|
qboolean TestLine (lightinfo_t *l, const vec3_t start, const vec3_t stop);
|
||||||
qboolean TestSky (lightinfo_t *l, vec3_t start, vec3_t stop);
|
qboolean TestSky (lightinfo_t *l, const vec3_t start, const vec3_t stop);
|
||||||
|
|
||||||
void LightFace (lightinfo_t *l, int surfnum);
|
void LightFace (lightinfo_t *l, int surfnum);
|
||||||
void LightLeaf (dleaf_t *leaf);
|
void LightLeaf (dleaf_t *leaf);
|
||||||
|
|
|
@ -143,7 +143,8 @@ MakeTnodes (dmodel_t *bm)
|
||||||
#define TESTLINESTATE_SOLID 2
|
#define TESTLINESTATE_SOLID 2
|
||||||
|
|
||||||
static qboolean
|
static qboolean
|
||||||
TestLineOrSky (lightinfo_t *l, vec3_t start, vec3_t end, qboolean sky_test)
|
TestLineOrSky (lightinfo_t *l, const vec3_t start, const vec3_t end,
|
||||||
|
qboolean sky_test)
|
||||||
{
|
{
|
||||||
vec_t front, back;
|
vec_t front, back;
|
||||||
vec3_t frontpt, backpt;
|
vec3_t frontpt, backpt;
|
||||||
|
@ -223,13 +224,13 @@ TestLineOrSky (lightinfo_t *l, vec3_t start, vec3_t end, qboolean sky_test)
|
||||||
}
|
}
|
||||||
|
|
||||||
qboolean
|
qboolean
|
||||||
TestLine (lightinfo_t *l, vec3_t start, vec3_t stop)
|
TestLine (lightinfo_t *l, const vec3_t start, const vec3_t stop)
|
||||||
{
|
{
|
||||||
return TestLineOrSky (l, start, stop, false);
|
return TestLineOrSky (l, start, stop, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
qboolean
|
qboolean
|
||||||
TestSky (lightinfo_t *l, vec3_t start, vec3_t dir)
|
TestSky (lightinfo_t *l, const vec3_t start, const vec3_t dir)
|
||||||
{
|
{
|
||||||
vec3_t stop;
|
vec3_t stop;
|
||||||
VectorAdd (dir, start, stop);
|
VectorAdd (dir, start, stop);
|
||||||
|
|
Loading…
Reference in a new issue