mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +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];
|
||||
|
||||
void LoadNodes (const char *file);
|
||||
qboolean TestLine (lightinfo_t *l, vec3_t start, vec3_t stop);
|
||||
qboolean TestSky (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, const vec3_t start, const vec3_t stop);
|
||||
|
||||
void LightFace (lightinfo_t *l, int surfnum);
|
||||
void LightLeaf (dleaf_t *leaf);
|
||||
|
|
|
@ -143,7 +143,8 @@ MakeTnodes (dmodel_t *bm)
|
|||
#define TESTLINESTATE_SOLID 2
|
||||
|
||||
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;
|
||||
vec3_t frontpt, backpt;
|
||||
|
@ -223,13 +224,13 @@ TestLineOrSky (lightinfo_t *l, vec3_t start, vec3_t end, qboolean sky_test)
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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;
|
||||
VectorAdd (dir, start, stop);
|
||||
|
|
Loading…
Reference in a new issue