summaryrefslogtreecommitdiff
path: root/src/Renderer.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-17 16:45:03 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-17 16:45:03 (GMT)
commit22381b24621c72a6cb579b4735584abe9d43b248 (patch)
treeb5b0c1d455e7f423689774e8587a7c87ab0a679a /src/Renderer.cpp
parent7682094f1303dc2a7a64888a397394953f326697 (diff)
downloadpowder-22381b24621c72a6cb579b4735584abe9d43b248.zip
powder-22381b24621c72a6cb579b4735584abe9d43b248.tar.gz
TPT: Draw pixels for the entire fire_alpha array 9001508623
Diffstat (limited to 'src/Renderer.cpp')
-rw-r--r--src/Renderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Renderer.cpp b/src/Renderer.cpp
index dba5a3b..10a9205 100644
--- a/src/Renderer.cpp
+++ b/src/Renderer.cpp
@@ -495,8 +495,8 @@ void Renderer::render_fire()
g = fire_g[j][i];
b = fire_b[j][i];
if (r || g || b)
- for (y=-CELL+1; y<2*CELL; y++)
- for (x=-CELL+1; x<2*CELL; x++)
+ for (y=-CELL; y<2*CELL; y++)
+ for (x=-CELL; x<2*CELL; x++)
this->g->addpixel(i*CELL+x, j*CELL+y, r, g, b, fire_alpha[y+CELL][x+CELL]);
r *= 8;
g *= 8;