12-17-2012, 05:10 AM
(12-16-2012, 03:54 PM)xoft Wrote: I finally had a look at the patch, nice work. I just reformatted some of the lengthy conditions, otherwise it's good. Committed as rev 1075.
Thanks
I see what you mean that the lever could power the repeater even when it is off. What I found from testing is that what is determining if power gets propagated to the neighboring blocks is the RemoveCurrent Function by finding which device is a power source (only a lever that is on is being detected as a power source).
What I have so far that is not working is what Luksor found: the lever doesn't power the block it is attached to when it is on the side of the block. I think this has to do with the way the powering of blocks are handled. That's why I thought of building some sort of event based simulator.