Changeset 1247 for cpp/frams/genetics/f1


Ignore:
Timestamp:
05/21/23 22:52:02 (12 months ago)
Author:
Maciej Komosinski
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f1/f1_conv.cpp

    r1244 r1247  
    199199                                setPartMapping(part1, g);
    200200                                SList ga;
    201                                 int i, count;
    202                                 count = countBranches(g + 1, ga);
     201                                int count = countBranches(g + 1, ga);
    203202                                c.muscle_reset_range = false;
    204203                                c.muscle_bend_range = 1.0 / count;
    205                                 for (i = 0; i < count; i++)
     204                                for (int i = 0; i < count; i++)
    206205                                        grow(part1, (char*)ga(i), k + Pt3D(0, 0, -M_PI + (i + 1)*(2 * M_PI / (count + 1))), c, part1);
    207206                                return;
Note: See TracChangeset for help on using the changeset viewer.