summaryrefslogtreecommitdiff
path: root/src/elements/prti.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2011-03-30 17:57:49 (GMT)
committer Simon <simon@hardwired.org.uk>2011-03-30 17:57:49 (GMT)
commitb7a004986f70986aa9cd314d754deddff6b031f0 (patch)
tree8f9329a74cfd1d2718de4e4a8bef62d7313d96ea /src/elements/prti.c
parent3863a7587734be5a010327d869838daf5790d84a (diff)
downloadpowder-b7a004986f70986aa9cd314d754deddff6b031f0.zip
powder-b7a004986f70986aa9cd314d754deddff6b031f0.tar.gz
A cracker commit with some nice comments
Diffstat (limited to 'src/elements/prti.c')
-rw-r--r--src/elements/prti.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/elements/prti.c b/src/elements/prti.c
index fa87562..2b08aae 100644
--- a/src/elements/prti.c
+++ b/src/elements/prti.c
@@ -1,5 +1,14 @@
#include <element.h>
-
+/*these are the count vaules of where the particle gets stored, depending on where it came from
+ 1 4 6
+ 2 . 7
+ 3 5 8
+ PRTO counts backwards, so that it will come out at the opposite place of where it came in
+ 8 5 3
+ 7 . 2
+ 6 4 1
+ PRTO does +/-1 to the count, so it doesn't jam as easily
+*/
int update_PRTI(UPDATE_FUNC_ARGS) {
int r, nnx, rx, ry, fe = 0;
int count =0;