Skip to content

Commit

Permalink
fix texture rotation, <3 @gimhael, fix #35
Browse files Browse the repository at this point in the history
code by @gimhael
  • Loading branch information
illwieckz committed Jul 1, 2019
1 parent b17dd39 commit d6e7e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/renderer/tr_bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ static void ParseFace( dsurface_t *ds, drawVert_t *verts, bspSurface_t *surf, in
for( i = 0; i < numVerts; i++ ) {
if( components[ i ].minVertex == i ) {
for( j = 0; j < 2; j++ ) {
components[ i ].stBounds[ 0 ][ j ] = rintf( 0.5f * (components[ i ].stBounds[ 1 ][ j ] + components[ i ].stBounds[ 0 ][ j ]) );
components[ i ].stBounds[ 0 ][ j ] = rintf( 0.5f * (components[ i ].stBounds[ 1 ][ j ] + components[ i ].stBounds[ 0 ][ j ]) - 0.5f );
}
}

Expand Down

0 comments on commit d6e7e8c

Please sign in to comment.