Skip to content

Commit

Permalink
Don't increase numsectors for mirror sector
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir committed Nov 5, 2024
1 parent a67cd57 commit 228cf44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/blood/src/mirrors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ void DrawMirrors(int x, int y, int z, fix16_t a, fix16_t horiz, int smooth, int
{
gMirrorDrawing = true;
const int bakNumsectors = numsectors;
if (numsectors < kMaxSectors-1)
if ((numsectors < kMaxSectors-1) && !VanillaMode())
numsectors++; // needed for rendering else operations like getzrange will crash when checking mirror sector
int nWall = mirror[i].at4;
int nSector = sectorofwall(nWall);
Expand Down

0 comments on commit 228cf44

Please sign in to comment.