summaryrefslogtreecommitdiff
path: root/src/simulation/elements/PRTI.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-12-07 00:51:33 (GMT)
committer jacob1 <jfu614@gmail.com>2012-12-07 00:51:33 (GMT)
commit226de5b6f88c95a4f76675be067de1af5de13902 (patch)
tree30a4437815ac04f762c1e926a9eaec337835067c /src/simulation/elements/PRTI.cpp
parenta15372afbfce1dcb500541fa36ee0724023f1ac3 (diff)
downloadpowder-226de5b6f88c95a4f76675be067de1af5de13902.zip
powder-226de5b6f88c95a4f76675be067de1af5de13902.tar.gz
add back element descriptions in some cpp files, fix minor TRON search problem. Also,
TPT-jacksonmj: Also fix bugs with energy particles that pass directly from PIPE to portal
Diffstat (limited to 'src/simulation/elements/PRTI.cpp')
-rw-r--r--src/simulation/elements/PRTI.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/simulation/elements/PRTI.cpp b/src/simulation/elements/PRTI.cpp
index 8383d90..e2daded 100644
--- a/src/simulation/elements/PRTI.cpp
+++ b/src/simulation/elements/PRTI.cpp
@@ -46,6 +46,14 @@ Element_PRTI::Element_PRTI()
Graphics = &Element_PRTI::graphics;
}
+/*these are the count values of where the particle gets stored, depending on where it came from
+ 0 1 2
+ 7 . 3
+ 6 5 4
+ PRTO does (count+4)%8, so that it will come out at the opposite place to where it came in
+ PRTO does +/-1 to the count, so it doesn't jam as easily
+*/
+
//#TPT-Directive ElementHeader Element_PRTI static int update(UPDATE_FUNC_ARGS)
int Element_PRTI::update(UPDATE_FUNC_ARGS)
{