| 423 | } |
| 424 | |
| 425 | S32 zNPCGoalIdle::NPCMessage(NPCMsg* mail) |
| 426 | { |
| 427 | S32 handled = 0; |
| 428 | |
| 429 | switch (mail->msgid) |
| 430 | { |
| 431 | case NPC_MID_BECOMESCARED: |
| 432 | case NPC_MID_NOLONGERSCARED: |
| 433 | { |
| 434 | zNPCGoalCommon* goal = (zNPCGoalCommon*)psyche->GetCurGoal(); |
| 435 | if (goal != NULL) |
| 436 | { |
| 437 | goal->DoAutoAnim(NPC_GSPOT_RESUME, 0); |
| 438 | } |
| 439 | handled = 0; |
| 440 | break; |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | return handled; |
| 445 | } |
| 446 | |
| 447 | S32 zNPCGoalPatrol::Enter(F32 dt, void* updCtxt) |
| 448 | { |
no test coverage detected