double strike

-help MSVC compilers with finite /* hope that won't break cygwin builds */
-a unfinished soft body feature sneaked in (freezer)  .. disabled for now
This commit is contained in:
Jens Ole Wund
2008-02-17 20:13:58 +00:00
parent afb3f0ec3a
commit 5163811290
2 changed files with 3 additions and 1 deletions

View File

@@ -2462,6 +2462,7 @@ static void softbody_apply_forces(Object *ob, float forcetime, int mode, float *
VecMulf(dx,forcetime);
/* the freezer */
/*
if ((Inpf(dx,dx)<freezeloc )&&(Inpf(bp->force,bp->force)<freezeforce )){
bp->frozen /=2;
}
@@ -2469,7 +2470,7 @@ static void softbody_apply_forces(Object *ob, float forcetime, int mode, float *
bp->frozen =MIN2(bp->frozen*1.05f,1.0f);
}
VecMulf(dx,bp->frozen);
*/
/* again some nasty if's to have heun in here too */
if (mode ==1){
VECCOPY(bp->prevpos,bp->pos);

View File

@@ -57,6 +57,7 @@ extern "C" {
#ifdef WIN32
#ifndef FREE_WINDOWS
#define isnan(n) _isnan(n)
#define finite _finite
#endif
#endif