Comment 1 for bug 1637386

Revision history for this message
TiborB (tiborb95) wrote :

I just looked at:

bool FindBobEnemySoldier::accept(Bob* const imm) const {
 if (upcast(Soldier, soldier, imm))
  if (soldier->is_on_battlefield() && (!player || soldier->owner().is_hostile(*player)) &&
      soldier->get_current_health())
   return true;

 return false;
}

and wonder what is the logic for "!player" .... ?