summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-06-26 14:20:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-26 14:20:10 (GMT)
commit43b75ea05855334646fc84f49729ac8d8d8763b2 (patch)
treed53b80907c7239ee7cdeb79c3d1e5635808e6ab1 /src
parent7351da3962afed0c46391372373238fdf6e8347c (diff)
downloadpowder-43b75ea05855334646fc84f49729ac8d8d8763b2.zip
powder-43b75ea05855334646fc84f49729ac8d8d8763b2.tar.gz
Ensure energy particles are always drawn on top
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 6a15e5a..a32d250 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1690,6 +1690,9 @@ void draw_parts(pixel *vid)
nx = (int)(parts[i].x+0.5f);
ny = (int)(parts[i].y+0.5f);
+ if(photons[ny][nx]&0xFF && !(ptypes[t].properties & TYPE_ENERGY))
+ continue;
+
if (t==PT_SOAP)
{
if ((parts[i].ctype&7) == 7)