Skip to content

Commit

Permalink
Fix face extents
Browse files Browse the repository at this point in the history
  • Loading branch information
UnrealKaraulov committed Mar 17, 2024
1 parent 8ef85aa commit ce5f2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qtools/rad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ bool CanFindFacePosition(Bsp* bsp, int facenum, int imins[2], int imaxs[2])

for (int k = 0; k < 2; k++)
{
imins[k] = (int)floor(texmins[k] / tmpTextureStep + 0.5 - ON_EPSILON);
imaxs[k] = (int)ceil(texmaxs[k] / tmpTextureStep - 0.5 + ON_EPSILON);
imins[k] = (int)floor(texmins[k] / tmpTextureStep);
imaxs[k] = (int)ceil(texmaxs[k] / tmpTextureStep );
}

int w = imaxs[0] - imins[0] + 1;
Expand Down

0 comments on commit ce5f2b0

Please sign in to comment.