fix formatting

This commit is contained in:
Garux
2021-10-26 18:16:24 +03:00
parent 977781a621
commit 0c390241c8
52 changed files with 242 additions and 242 deletions

View File

@@ -429,7 +429,7 @@ void AddPointToBounds( const Vector3& v, Vector3& mins, Vector3& maxs ){
int i;
float val;
for ( i = 0 ; i < 3 ; i++ )
for ( i = 0; i < 3; i++ )
{
val = v[i];
if ( val < mins[i] ) {
@@ -564,7 +564,7 @@ void EmitBrushPrimitTextureCoordinates( face_t * f, Winding * w ){
ConvertTexMatWithQTexture( &f->brushprimit_texdef, 0, &f->brushprimit_texdef, f->pShader->getTexture() );
}
int i;
for ( i = 0 ; i < w.numpoints ; i++ )
for ( i = 0; i < w.numpoints; i++ )
{
x = vector3_dot( w.point_at( i ),texX );
y = vector3_dot( w.point_at( i ),texY );
@@ -842,14 +842,14 @@ void TextureLockTransformation_BrushPrimit( face_t *f ){
}
else
{
for ( j = 0 ; j < 3 ; j++ )
for ( j = 0; j < 3; j++ )
rOrig[j] = vector3_dot( vector3_subtracted( Orig, txl_origin ), txl_matrix[j] ) + txl_origin[j];
for ( j = 0 ; j < 3 ; j++ )
for ( j = 0; j < 3; j++ )
rvecS[j] = vector3_dot( vector3_subtracted( texS, txl_origin ), txl_matrix[j] ) + txl_origin[j];
for ( j = 0 ; j < 3 ; j++ )
for ( j = 0; j < 3; j++ )
rvecT[j] = vector3_dot( vector3_subtracted( texT, txl_origin ), txl_matrix[j] ) + txl_origin[j];
// we also need the axis base of the target plane, apply the transformation matrix to the normal too..
for ( j = 0 ; j < 3 ; j++ )
for ( j = 0; j < 3; j++ )
rNormal[j] = vector3_dot( f->plane.normal, txl_matrix[j] );
}
@@ -1103,7 +1103,7 @@ void BPTexdef_Rotate( brushprimit_texdef_t& bp_td, float angle ){
const float y1 = bp_td.coords[1][1];
const float s = sin( degrees_to_radians( -angle ) );
const float c = cos( degrees_to_radians( -angle ) );
bp_td.coords[0][0] = x * c - y * s ;
bp_td.coords[0][0] = x * c - y * s;
bp_td.coords[0][1] = x * s + y * c;
bp_td.coords[1][0] = x1 * c - y1 * s;
bp_td.coords[1][1] = x1 * s + y1 * c;