From 4e228fc4ea0189be7f28eba68d59b99841f91aab Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 18 Mar 2022 11:34:42 -0400 Subject: more wall renders --- src/renderer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/renderer.cpp') diff --git a/src/renderer.cpp b/src/renderer.cpp index 9744e70..10027dd 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -173,7 +173,7 @@ void Renderer::renderGame( if (draw) { - if (game.map.tile(x,y) != Tile::Wall) { + /*if (game.map.tile(x,y) != Tile::Wall)*/ { SDL_Rect tileRect {17 * 16, 15 * 16, 16, 16}; SDL_RenderCopy(ren_.get(), tileset_.get(), &tileRect, &rect); @@ -182,7 +182,7 @@ void Renderer::renderGame( tileRect.y = game.map.at(x,y).renderId / 25 * 16; SDL_RenderCopy(ren_.get(), tileset_.get(), &tileRect, &rect); } - } else { + }/* else { SDL_Rect tileRect { game.map.at(x,y).renderId % 25 * 16, game.map.at(x,y).renderId / 25 * 16, @@ -190,7 +190,7 @@ void Renderer::renderGame( 16}; SDL_RenderCopy(ren_.get(), tileset_.get(), &tileRect, &rect); - } + }*/ if (game.map.tile(x,y) == Tile::Lamp) { SDL_RenderCopy(ren_.get(), lamp_.get(), nullptr, &rect); -- cgit 1.4.1