From 24d5ca7d4e28d7996d0866f5ebc081e74d28de5b Mon Sep 17 00:00:00 2001 From: Felix Wallin Date: Thu, 21 Oct 2010 17:33:14 +0200 Subject: [PATCH] added simple description for eval_move --- src/powder.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/powder.c b/src/powder.c index d85d49879..2d2e09900 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;