summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-14 18:18:57 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-14 18:18:57 -0400
commitbcefc1e2d87d57aaf6ae5ef8a05946081d259e41 (patch)
tree7f980943422d47c3b01084c30260219f3fd50761 /src
parent0018504aad3018b4cc01d7cb70d2f1033faed96b (diff)
downloadether-bcefc1e2d87d57aaf6ae5ef8a05946081d259e41.tar.gz
ether-bcefc1e2d87d57aaf6ae5ef8a05946081d259e41.tar.bz2
ether-bcefc1e2d87d57aaf6ae5ef8a05946081d259e41.zip
slightly offscreen lamp glows are rendered
Diffstat (limited to 'src')
-rw-r--r--src/renderer.cpp4
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 {