diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/renderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp index 61aaf31..139b493 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp | |||
@@ -225,9 +225,9 @@ void Renderer::renderGame( | |||
225 | SDL_SetRenderDrawColor(ren_.get(), 0, 0, 0, 0); | 225 | SDL_SetRenderDrawColor(ren_.get(), 0, 0, 0, 0); |
226 | SDL_RenderClear(ren_.get()); | 226 | SDL_RenderClear(ren_.get()); |
227 | 227 | ||
228 | for (int y = topmost; y < topmost + windowTileHeight; y++) | 228 | for (int y = topmost - RADIUS; y < topmost + windowTileHeight + RADIUS; y++) |
229 | { | 229 | { |
230 | for (int x = leftmost; x < leftmost + windowTileWidth; x++) | 230 | for (int x = leftmost - RADIUS; x < leftmost + windowTileWidth + RADIUS; x++) |
231 | { | 231 | { |
232 | if (game.map.at(x,y).lightType != Source::None) | 232 | if (game.map.at(x,y).lightType != Source::None) |
233 | { | 233 | { |