Changeset 435 for experiments


Ignore:
Timestamp:
10/15/15 14:45:03 (9 years ago)
Author:
oriona
Message:

stepToNearest call corrected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experiments/frams/foraminifera/data/scripts/foraminifera.expdef

    r434 r435  
    292292}
    293293
    294 function stepToNearest(cr, range)
     294function stepToNearest(cr)
    295295{
    296296        var p = cr.getMechPart(0);
     
    361361        //are there any nutrients in zone 1 or 2?
    362362        {
    363                 var moved = stepToNearest(ExpParams.zone2_range); //TODO weighted sum of distance and energy
     363                var moved = stepToNearest(cr); //TODO weighted sum of distance and energy
    364364                if (moved==1)
    365365                {
Note: See TracChangeset for help on using the changeset viewer.