Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
output: fix Output_InsertObjectG4_ZBuffered
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Nov 3, 2023
1 parent a9ab1f8 commit 8cc4468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -2810,8 +2810,8 @@ const int16_t *__cdecl Output_InsertObjectG4_ZBuffered(
const int8_t clip_and =
vtx[0]->clip & vtx[1]->clip & vtx[2]->clip & vtx[3]->clip;

if (clip_and == 0) {
break;
if (clip_and != 0) {
continue;
}

if (clip_or >= 0) {
Expand Down Expand Up @@ -2895,7 +2895,7 @@ const int16_t *__cdecl Output_InsertObjectG4_ZBuffered(
continue;
}

const PALETTEENTRY *const color = &g_GamePalette16[color_idx];
const PALETTEENTRY *const color = &g_GamePalette16[color_idx >> 8];
Output_DrawPoly_Gouraud(
num_points, color->peRed, color->peGreen, color->peBlue);
}
Expand Down

0 comments on commit 8cc4468

Please sign in to comment.