Skip to content

Commit

Permalink
Engine: Fix logic error regarding loadvoxel_replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendricks266 committed Aug 28, 2023
1 parent 28fbf7d commit 40d1552
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions source/build/src/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5781,13 +5781,11 @@ static void classicDrawSprite(int32_t snum)
if (x == rx) return;
}

for (i=0; i<MAXVOXMIPS; i++)
if (!voxoff[vtilenum][i])
{
if (loadvoxel_replace)
loadvoxel_replace(vtilenum);
break;
}
if (!voxoff[vtilenum][0])
{
if (loadvoxel_replace)
loadvoxel_replace(vtilenum);
}

const int32_t *const longptr = (int32_t *)voxoff[vtilenum][0];
if (longptr == NULL)
Expand Down

0 comments on commit 40d1552

Please sign in to comment.