From 10f63743ab0d3c1836f5134df09d1f15f27f92d0 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 2 Mar 2020 17:51:17 +0100 Subject: [PATCH] elec: charged walls are destroyed if they are adjacent to grounded walls --- complex.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/complex.cpp b/complex.cpp index e20bf718..87624d9b 100644 --- a/complex.cpp +++ b/complex.cpp @@ -359,6 +359,10 @@ EX namespace elec { if(c->wall == waDeadTroll2 || isAlchAny(c) || c->wall == waVinePlant) drawParticles(c, winf[c->wall].color, 16), c->wall = waNone; + + /* destroy charged walls on the border */ + if(c->wall == waCharged) forCellEx(c1, c) if(c1->wall == waGrounded) + c->wall = waNone; /* if(c->wall == waCharged) c->wall = waMetal; */ }