diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-18 11:34:42 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-18 11:34:42 -0400 |
commit | 4e228fc4ea0189be7f28eba68d59b99841f91aab (patch) | |
tree | 860e2749af3773f0fe74e544635c542b9ed76ce0 /src/renderer.cpp | |
parent | 5324adfe51f1348fc97fe2ee0ca4e4bbd2a6ad64 (diff) | |
download | ether-4e228fc4ea0189be7f28eba68d59b99841f91aab.tar.gz ether-4e228fc4ea0189be7f28eba68d59b99841f91aab.tar.bz2 ether-4e228fc4ea0189be7f28eba68d59b99841f91aab.zip |
more wall renders
Diffstat (limited to 'src/renderer.cpp')
-rw-r--r-- | src/renderer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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( | |||
173 | 173 | ||
174 | if (draw) | 174 | if (draw) |
175 | { | 175 | { |
176 | if (game.map.tile(x,y) != Tile::Wall) { | 176 | /*if (game.map.tile(x,y) != Tile::Wall)*/ { |
177 | SDL_Rect tileRect {17 * 16, 15 * 16, 16, 16}; | 177 | SDL_Rect tileRect {17 * 16, 15 * 16, 16, 16}; |
178 | SDL_RenderCopy(ren_.get(), tileset_.get(), &tileRect, &rect); | 178 | SDL_RenderCopy(ren_.get(), tileset_.get(), &tileRect, &rect); |
179 | 179 | ||
@@ -182,7 +182,7 @@ void Renderer::renderGame( | |||
182 | tileRect.y = game.map.at(x,y).renderId / 25 * 16; | 182 | tileRect.y = game.map.at(x,y).renderId / 25 * 16; |
183 | SDL_RenderCopy(ren_.get(), tileset_.get(), &tileRect, &rect); | 183 | SDL_RenderCopy(ren_.get(), tileset_.get(), &tileRect, &rect); |
184 | } | 184 | } |
185 | } else { | 185 | }/* else { |
186 | SDL_Rect tileRect { | 186 | SDL_Rect tileRect { |
187 | game.map.at(x,y).renderId % 25 * 16, | 187 | game.map.at(x,y).renderId % 25 * 16, |
188 | game.map.at(x,y).renderId / 25 * 16, | 188 | game.map.at(x,y).renderId / 25 * 16, |
@@ -190,7 +190,7 @@ void Renderer::renderGame( | |||
190 | 16}; | 190 | 16}; |
191 | 191 | ||
192 | SDL_RenderCopy(ren_.get(), tileset_.get(), &tileRect, &rect); | 192 | SDL_RenderCopy(ren_.get(), tileset_.get(), &tileRect, &rect); |
193 | } | 193 | }*/ |
194 | 194 | ||
195 | if (game.map.tile(x,y) == Tile::Lamp) { | 195 | if (game.map.tile(x,y) == Tile::Lamp) { |
196 | SDL_RenderCopy(ren_.get(), lamp_.get(), nullptr, &rect); | 196 | SDL_RenderCopy(ren_.get(), lamp_.get(), nullptr, &rect); |