Skip to content

Commit

Permalink
Remove asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidityC committed Sep 30, 2024
1 parent 04311ef commit b3a3fb3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/roommatrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b3a3fb3

Please sign in to comment.