summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Wallin <nibbler.v1@gmail.com>2010-10-21 15:33:14 (GMT)
committer Felix Wallin <nibbler.v1@gmail.com>2010-10-21 15:33:14 (GMT)
commit24d5ca7d4e28d7996d0866f5ebc081e74d28de5b (patch)
tree763afa714b7afc3a45abd5b1b1612c4109fcfc0c /src
parente711060cb909ae308efc68ea5c2f21e470f39ceb (diff)
downloadpowder-24d5ca7d4e28d7996d0866f5ebc081e74d28de5b.zip
powder-24d5ca7d4e28d7996d0866f5ebc081e74d28de5b.tar.gz
added simple description for eval_move
Diffstat (limited to 'src')
-rw-r--r--src/powder.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index d85d498..2d2e099 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -49,7 +49,12 @@ static void photoelectric_effect(int nx, int ny)
pn_junction_sprk(nx, ny, PT_PSCN);
}
}
-
+/*
+ RETURN-value explenation
+1 = Swap
+0 = No move/Bounce
+2 = Both particles occupy the same space.
+ */
static int eval_move(int pt, int nx, int ny, unsigned *rr)
{
unsigned r;