From b3a3fb33b291321b31d49dd20ee609f76af4cf37 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Mon, 30 Sep 2024 09:44:57 +0200 Subject: [PATCH] Remove asserts --- src/roommatrix.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/roommatrix.c b/src/roommatrix.c index ec226a9..d75e6dc 100644 --- a/src/roommatrix.c +++ b/src/roommatrix.c @@ -276,8 +276,6 @@ roommatrix_build_lightmap(RoomMatrix *matrix, Camera *camera) for (i = 0; i < MAP_ROOM_WIDTH; ++i) { for (j = 0; j < MAP_ROOM_HEIGHT; ++j) { light = (Uint8) matrix->spaces[i][j].light; - assert(0 <= matrix->spaces[i][j].light); - assert(matrix->spaces[i][j].light <= 255); SDL_SetRenderDrawColor(camera->renderer, 0, 0, 0, 255-light); SDL_RenderDrawPoint(camera->renderer, i, j); }