mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Trim all trailing whitespace
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
This commit is contained in:
committed by
Alibek Omarov
parent
3af742f103
commit
5e0a0765ce
@@ -75,18 +75,18 @@ void PM_InitBoxHull( void )
|
||||
for( i = 0; i < 6; i++ )
|
||||
{
|
||||
pm_boxclipnodes[i].planenum = i;
|
||||
|
||||
|
||||
side = i & 1;
|
||||
|
||||
|
||||
pm_boxclipnodes[i].children[side] = CONTENTS_EMPTY;
|
||||
if( i != 5 ) pm_boxclipnodes[i].children[side^1] = i + 1;
|
||||
else pm_boxclipnodes[i].children[side^1] = CONTENTS_SOLID;
|
||||
|
||||
|
||||
pm_boxplanes[i].type = i>>1;
|
||||
pm_boxplanes[i].normal[i>>1] = 1.0f;
|
||||
pm_boxplanes[i].signbits = 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -231,7 +231,7 @@ loc0:
|
||||
|
||||
if( num < hull->firstclipnode || num > hull->lastclipnode )
|
||||
Host_Error( "PM_RecursiveHullCheck: bad node number %i\n", num );
|
||||
|
||||
|
||||
// find the point distances
|
||||
node = hull->clipnodes + num;
|
||||
plane = hull->planes + node->planenum;
|
||||
@@ -259,7 +259,7 @@ loc0:
|
||||
|
||||
if( frac < 0.0f ) frac = 0.0f;
|
||||
if( frac > 1.0f ) frac = 1.0f;
|
||||
|
||||
|
||||
midf = p1f + ( p2f - p1f ) * frac;
|
||||
VectorLerp( p1, frac, p2, mid );
|
||||
|
||||
@@ -272,12 +272,12 @@ loc0:
|
||||
{
|
||||
// go past the node
|
||||
return PM_RecursiveHullCheck( hull, node->children[side^1], midf, p2f, mid, p2, trace );
|
||||
}
|
||||
}
|
||||
|
||||
// never got out of the solid area
|
||||
if( trace->allsolid )
|
||||
return false;
|
||||
|
||||
|
||||
// the other side of the node is solid, this is the impact point
|
||||
if( !side )
|
||||
{
|
||||
@@ -391,7 +391,7 @@ pmtrace_t PM_PlayerTraceExt( playermove_t *pmove, vec3_t start, vec3_t end, int
|
||||
hull = PM_HullForBox( mins, maxs );
|
||||
VectorCopy( pe->origin, offset );
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
VectorSubtract( pe->mins, pmove->player_maxs[pmove->usehull], mins );
|
||||
@@ -712,7 +712,7 @@ int PM_PointContents( playermove_t *pmove, const vec3_t p )
|
||||
if( FBitSet( pe->model->flags, MODEL_HAS_ORIGIN ) && !VectorIsNull( pe->angles ))
|
||||
{
|
||||
matrix4x4 matrix;
|
||||
|
||||
|
||||
Matrix4x4_CreateFromEntity( matrix, pe->angles, pe->origin, 1.0f );
|
||||
Matrix4x4_VectorITransform( matrix, p, test );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user