aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2014-01-22 20:19:16 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2014-01-22 20:19:16 +0000
commitfe4c978ff20e2a7df5e8be384edb7616753da425 (patch)
tree95c3fe18a533a4ff93bf70d33b994bb4f9f40e1a
parent06a668e602db70c9e31b08e83f3ffc8a51aa1217 (diff)
small debug
svn path=/trunk/externals/pmpd/; revision=17243
-rw-r--r--pmpd2d_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pmpd2d_test.c b/pmpd2d_test.c
index 795b00b..84490fc 100644
--- a/pmpd2d_test.c
+++ b/pmpd2d_test.c
@@ -68,13 +68,13 @@ int test_2d_mass(int i, t_pmpd2d *x, int argc, t_atom *argv)
else if (atom_getsymbolarg(j,argc,argv) == gensym("distanceCircleInf"))
{
tmp = sqr(x->mass[i].posX - atom_getfloatarg(j+1,argc,argv))+sqr(x->mass[i].posY - atom_getfloatarg(j+2,argc,argv));
- if ( tmp >= sqr(atom_getfloatarg(j+4,argc,argv)) ) { return(0); }
+ if ( tmp >= sqr(atom_getfloatarg(j+3,argc,argv)) ) { return(0); }
j += 5;
}
else if (atom_getsymbolarg(j,argc,argv) == gensym("distanceCircleSup"))
{
tmp = sqr(x->mass[i].posX - atom_getfloatarg(j+1,argc,argv))+sqr(x->mass[i].posY - atom_getfloatarg(j+2,argc,argv));
- if ( tmp < sqr(atom_getfloatarg(j+4,argc,argv)) ) { return(0); }
+ if ( tmp < sqr(atom_getfloatarg(j+3,argc,argv)) ) { return(0); }
j += 5;
}
else if (atom_getsymbolarg(j,argc,argv) == gensym("massSup"))