diff options
-rw-r--r-- | src/maze.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -199,9 +199,9 @@ mf_maze_render(struct mf_maze *m, SDL_Renderer *renderer, SDL_Color *color, for (y = 0; y < m->h; ++y) { for (x = 0; x < m->w; ++x) { if (y < m->h - 1 && mf_maze_is_wall(m, x, y, 0, 1)) { - /* Draw v line */ + /* Draw h line */ if (SDL_RenderDrawLine(renderer, - (x+1) * cw, (y ) * cw, + (x ) * cw, (y+1) * cw, (x+1) * cw, (y+1) * cw) < 0) { SDL_LogError( @@ -212,9 +212,9 @@ mf_maze_render(struct mf_maze *m, SDL_Renderer *renderer, SDL_Color *color, } } if (x < m->w - 1 && mf_maze_is_wall(m, x, y, 1, 0)) { - /* Draw h line */ + /* Draw v line */ if (SDL_RenderDrawLine(renderer, - (x ) * cw, (y+1) * cw, + (x+1) * cw, (y ) * cw, (x+1) * cw, (y+1) * cw) < 0) { SDL_LogError( |