Skip to content

Commit

Permalink
Fix operators in DX8FVFCategoryContainer::Find_Matching_Texture_Categ…
Browse files Browse the repository at this point in the history
…ory (#1153)
  • Loading branch information
xezon authored Sep 9, 2024
1 parent 623d12e commit 42ee6c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/w3d/renderer/dx8renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ DX8TextureCategoryClass *DX8FVFCategoryContainer::Find_Matching_Texture_Category
bool b = true;

for (int i = 0; i < 2; i++) {
b = b & (tc->Peek_Texture(i) == ref_category->Peek_Texture(i));
b = b && (tc->Peek_Texture(i) == ref_category->Peek_Texture(i));
}

if (b) {
Expand Down Expand Up @@ -1161,7 +1161,7 @@ DX8TextureCategoryClass *DX8FVFCategoryContainer::Find_Matching_Texture_Category

for (int i = 0; i < 2; i++) {
if (stage != i) {
b = b & (tc->Peek_Texture(i) == ref_category->Peek_Texture(i));
b = b && (tc->Peek_Texture(i) == ref_category->Peek_Texture(i));
}
}

Expand Down

0 comments on commit 42ee6c9

Please sign in to comment.