mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
MOD_TraceLine doesn't need to return anything...
This commit is contained in:
parent
2881b4b284
commit
37ad41ecb7
2 changed files with 7 additions and 7 deletions
|
@ -115,7 +115,7 @@ struct edict_s *SV_TestPlayerPosition (struct edict_s *ent,
|
|||
int SV_HullPointContents (hull_t *hull, int num, const vec3_t p);
|
||||
hull_t *SV_HullForEntity (struct edict_s *ent, const vec3_t mins,
|
||||
const vec3_t maxs, vec3_t extents, vec3_t offset);
|
||||
qboolean MOD_TraceLine (hull_t *hull, int num,
|
||||
const vec3_t start, const vec3_t end, trace_t *trace);
|
||||
void MOD_TraceLine (hull_t *hull, int num,
|
||||
const vec3_t start, const vec3_t end, trace_t *trace);
|
||||
|
||||
#endif // __world_h
|
||||
|
|
|
@ -160,12 +160,12 @@ traceline (hull_t *hull, int num, float p1f, float p2f,
|
|||
return false;
|
||||
}
|
||||
|
||||
VISIBLE qboolean
|
||||
VISIBLE void
|
||||
MOD_TraceLine (hull_t *hull, int num,
|
||||
const vec3_t start_point, const vec3_t end_point,
|
||||
trace_t *trace)
|
||||
{
|
||||
return traceline (hull, num, 0, 1, start_point, end_point, trace);
|
||||
traceline (hull, num, 0, 1, start_point, end_point, trace);
|
||||
}
|
||||
#else
|
||||
typedef struct {
|
||||
|
@ -175,7 +175,7 @@ typedef struct {
|
|||
mplane_t *plane;
|
||||
} tracestack_t;
|
||||
|
||||
VISIBLE qboolean
|
||||
VISIBLE void
|
||||
MOD_TraceLine (hull_t *hull, int num,
|
||||
const vec3_t start_point, const vec3_t end_point,
|
||||
trace_t *trace)
|
||||
|
@ -222,14 +222,14 @@ MOD_TraceLine (hull_t *hull, int num,
|
|||
trace->allsolid = solid & (num == CONTENTS_SOLID);
|
||||
trace->startsolid = solid;
|
||||
calc_impact (trace, start_point, end_point, split_plane);
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
// pop up the stack for a back side
|
||||
if (tstack-- == tracestack) {
|
||||
trace->allsolid = solid & (num == CONTENTS_SOLID);
|
||||
trace->startsolid = solid;
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
||||
// set the hit point for this plane
|
||||
|
|
Loading…
Reference in a new issue