From 43b75ea05855334646fc84f49729ac8d8d8763b2 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sun, 26 Jun 2011 15:20:10 +0100 Subject: [PATCH] Ensure energy particles are always drawn on top --- src/graphics.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/graphics.c b/src/graphics.c index 6a15e5a93..a32d25086 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)