Skip to content

Commit b3a3fb3

Browse files
committed
Remove asserts
1 parent 04311ef commit b3a3fb3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/roommatrix.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ roommatrix_build_lightmap(RoomMatrix *matrix, Camera *camera)
276276
for (i = 0; i < MAP_ROOM_WIDTH; ++i) {
277277
for (j = 0; j < MAP_ROOM_HEIGHT; ++j) {
278278
light = (Uint8) matrix->spaces[i][j].light;
279-
assert(0 <= matrix->spaces[i][j].light);
280-
assert(matrix->spaces[i][j].light <= 255);
281279
SDL_SetRenderDrawColor(camera->renderer, 0, 0, 0, 255-light);
282280
SDL_RenderDrawPoint(camera->renderer, i, j);
283281
}

0 commit comments

Comments
 (0)