Skip to content

Commit 7a9c822

Browse files
committed
Fix light rendering issue in case 13 of marching squares
1 parent b83f006 commit 7a9c822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/engine/render/light_render.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ void RenderCell(uint8_t quad[4], Point position, uint8_t lightLevel, uint8_t *li
338338
Point p5 = fpCenter3;
339339
RenderTriangle(p1, p3, p2, lightLevel, lightmap, pitch, scanLines);
340340
RenderTriangle(p1, p4, p3, lightLevel, lightmap, pitch, scanLines);
341-
RenderTriangle(p2, p5, p4, lightLevel, lightmap, pitch, scanLines);
341+
RenderTriangle(p1, p5, p4, lightLevel, lightmap, pitch, scanLines);
342342
} break;
343343

344344
// Fill in everything except the bottom-left corner of the cell

0 commit comments

Comments
 (0)