aboutsummaryrefslogtreecommitdiff
path: root/msd.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-05-03 12:03:42 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-05-03 12:03:42 +0000
commita1d3abc4bb67808620b263a2610151d84d6540fb (patch)
treef4986dfd8a7fed4335cee6f79a70a79840acee1d /msd.h
parentbf5b6525ec173512665779ae2caea65e8600bc84 (diff)
fixed patches, improved error reporting
svn path=/trunk/externals/nusmuk/; revision=2890
Diffstat (limited to 'msd.h')
-rw-r--r--msd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/msd.h b/msd.h
index 901ddc1..baeecd7 100644
--- a/msd.h
+++ b/msd.h
@@ -145,7 +145,7 @@ public:
}
}
- static t_float dist(const Mass &m1,const Mass &m2)
+ static inline t_float dist(const Mass &m1,const Mass &m2)
{
if(N == 1)
return fabs(m1.pos[0]-m2.pos[0]); // L[n] = |x1 - x2|
@@ -366,7 +366,7 @@ protected:
void m_mass(int argc,t_atom *argv)
{
if(argc != 3+N) {
- error("mass : Id mobile mass X");
+ error("mass : Id mobile mass X%s%s",N >= 2?" Y":"",N >= 3?" Z":"");
return;
}