engine: use designated initializers where possible

This commit is contained in:
Alibek Omarov
2026-05-20 12:44:26 -04:00
committed by a1batross
parent c5a8160c32
commit 64be4251c8
15 changed files with 143 additions and 133 deletions

View File

@@ -303,11 +303,11 @@ loc0:
int PM_TestLineExt( playermove_t *pmove, physent_t *ents, int numents, const vec3_t start, const vec3_t end, int flags )
{
linetrace_t trace;
trace.contents = CONTENTS_EMPTY;
trace.fraction = 1.0f;
trace.surface = NULL;
linetrace_t trace =
{
.contents = CONTENTS_EMPTY,
.fraction = 1.0f,
};
for( int i = 0; i < numents; i++ )
{
@@ -346,10 +346,11 @@ int PM_TestLineExt( playermove_t *pmove, physent_t *ents, int numents, const vec
VectorSubtract( end, pe->origin, end_l );
}
linetrace_t trace_bbox;
trace_bbox.contents = CONTENTS_EMPTY;
trace_bbox.fraction = 1.0f;
trace_bbox.surface = NULL;
linetrace_t trace_bbox =
{
.contents = CONTENTS_EMPTY,
.fraction = 1.0f,
};
PM_TestLine_r( pe->model, &pe->model->nodes[hull->firstclipnode], 0.0f, 1.0f, start_l, end_l, &trace_bbox );