Ticket #199: gunnar_7_12.8.diff

File gunnar_7_12.8.diff, 494 bytes (added by gunnar, 8 months ago)

Don't allow sacrifice of goal worm when catching lunch in owl/semeai reading.

  • engine/owl.c

     
    59285928        already_checked[lunch] = 1; 
    59295929 
    59305930        attack_and_defend(lunch, &acode, &apos, &dcode, &dpos); 
    5931         if (acode != 0) { 
     5931        if (acode != 0 
     5932            && (!liberty_of_goal(apos, owl) || safe_move(apos, color))) { 
    59325933          owl->lunch[lunches] = lunch; 
    59335934          owl->lunch_attack_code[lunches]  = acode; 
    59345935          owl->lunch_attack_point[lunches] = apos;