From 6c89c63a44b252c2ddffb77e3c07a8e0147d77bf Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Wed, 23 Jan 2013 19:20:52 +0000 Subject: [PATCH] PSTN: Do not accept current from diagonals, increase distance for spark checks --- src/simulation/elements/PSTN.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simulation/elements/PSTN.cpp b/src/simulation/elements/PSTN.cpp index 7e4aaa6e5..d49ce01d8 100644 --- a/src/simulation/elements/PSTN.cpp +++ b/src/simulation/elements/PSTN.cpp @@ -65,9 +65,9 @@ int Element_PSTN::update(UPDATE_FUNC_ARGS) int r, nxx, nyy, nxi, nyi, rx, ry; int directionX = 0, directionY = 0; if (parts[i].life==0 && state == PISTON_INACTIVE) { - for (rx=-1; rx<2; rx++) - for (ry=-1; ry<2; ry++) - if (x+rx>=0 && y+ry>0 && x+rx=0 && y+ry>0 && x+rx