| 203 | } |
| 204 | |
| 205 | static bool AvoidBeInWith(AICenter* center, Person* person) |
| 206 | { |
| 207 | if (!person) |
| 208 | { |
| 209 | return false; |
| 210 | } |
| 211 | if (!center->IsEnemy(person->GetTargetSide())) |
| 212 | { |
| 213 | return false; |
| 214 | } |
| 215 | if (person->Brain() && person->Brain()->GetCaptive()) |
| 216 | { |
| 217 | return false; |
| 218 | } |
| 219 | |
| 220 | return true; |
| 221 | } |
| 222 | |
| 223 | bool AIUnit::ProcessGetIn(Transport& veh) |
| 224 | { |
no test coverage detected