Ignore:
Timestamp:
10/10/18 01:13:05 (6 years ago)
Author:
Maciej Komosinski
Message:

Performance and stability improvements in fB, fH, and fL; improved parsing and math evaluations in fL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fL/fL_oper.cpp

    r803 r821  
    6464        }
    6565
    66         if (builder.countSticksInSequence(builder.genotype) == 0)
     66        if (builder.countSticksInSequence(&builder.genotype) == 0)
    6767        {
    6868                return GENOPER_OPFAIL;
     
    142142                        SString det;
    143143                        NeuroClass *cls = getRandomNeuroClass();
    144                         //we do not check if this class
    145144                        det = cls->getName();
    146145                        Geno_fH::mutateNeuronProperties(det);
     
    418417                        int ruleid = 0;
    419418                        std::list<fL_Word *> *list = selectRandomSequence(creature, numpars, ruleid);
    420                         if (ruleid == -1 && creature->countSticksInSequence((*list)) == 1)
     419                        if (ruleid == -1 && creature->countSticksInSequence(list) == 1)
    421420                        {
    422421                                if (list->size() > 1)
     
    540539                        }
    541540                        int chgtype = roulette(chgoperations, FL_CHG_COUNT);
    542                         if (creature->countSticksInSequence((*list)) == 1 && tmp == -1) // if sequence is axiom
     541                        if (creature->countSticksInSequence(list) == 1 && tmp == -1) // if sequence is axiom
    543542                        {
    544543                                fL_Word *worddef = randomWordDefinition(creature, roulette(addtypes, FL_ADD_COUNT - 1));
Note: See TracChangeset for help on using the changeset viewer.