Incomp. Proto. Change: breeding_key -> breeding_key1, breeding_key2

This commit is contained in:
Petr Baudis 2011-12-17 00:01:45 +01:00
parent 724cf937d7
commit 177d41cf60
4 changed files with 12 additions and 6 deletions

View file

@ -106,7 +106,7 @@ agent::breed_dir(int dir_x, int dir_y, std::string info)
* a technical problem with in/out buf locking. */
assert(a != this);
if (abs(a->attr.breeding_key - attr.breeding_key) > world::breeding_kappa)
if (abs(attr.breeding_key1 - a->attr.breeding_key2) > world::breeding_kappa)
return false;
chenergy(world::breed_out_cost);