TPT: Don't hide stickman when energy particles pass through his head 9f0c4857e

This commit is contained in:
Simon Robertshaw 2012-06-12 18:21:21 +01:00
parent e0ab8c5810
commit 95a9b96dc9

View File

@ -804,7 +804,7 @@ void Renderer::render_parts()
fnx = sim->parts[i].x;
fny = sim->parts[i].y;
if((sim->photons[ny][nx]&0xFF) && !(elements[t].Properties & TYPE_ENERGY))
if((sim->photons[ny][nx]&0xFF) && !(sim->elements[t].Properties & TYPE_ENERGY) && t!=PT_STKM && t!=PT_STKM2 && t!=PT_FIGH)
continue;
//Defaults