Code center > Bugs and fixes

2.43u delgene defect? RESOLVED 2.43w

<< < (4/4)

EricL:

--- Quote from: Peter ---Is gues there has something gone wrong with the change, after reproduction bots seem to have no genes.

Atleast that is what I see after ''number of genes. And the sysvar genes also gives zero.
--- End quote ---
It's a bug.  For perf reasons, instead of calculating the number of genes in every bot every single cycle, like the code did before, I now just do it once and update it when mutations or viruses happen.  Big perf improvement.  But I missed the case for bots when they are born (it's correct when they are added manually, teleported in or injected at sim start or repopulated).  I don't calculate their number of genes, so it will be 0 until they mutate or get infected.  Fixed in 2.43y.

Navigation

[0] Message Index

[*] Previous page

Go to full version