| 39 | } |
| 40 | |
| 41 | S32 zNPCGoalCommon::PreCalc(F32 dt, void* updCtxt) |
| 42 | { |
| 43 | zNPCCommon* npc = (zNPCCommon*)psyche->clt_owner; |
| 44 | |
| 45 | if (flg_npcgauto & 0x8) |
| 46 | { |
| 47 | if ((flg_info |= 0x8) == 0) |
| 48 | { |
| 49 | U32 curid = npc->AnimCurStateID(); |
| 50 | |
| 51 | if (curid != anid_played) |
| 52 | { |
| 53 | Name(); |
| 54 | |
| 55 | flg_info |= 0x8; |
| 56 | |
| 57 | if (psyche->cb_notice && psyche->cb_notice) |
| 58 | { |
| 59 | psyche->cb_notice->Notice(PSY_NOTE_ANIMCHANGED, this, NULL); |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | return xGoal::PreCalc(dt, updCtxt); |
| 66 | } |
| 67 | |
| 68 | U32 zNPCGoalCommon::DoAutoAnim(en_NPC_GOAL_SPOT gspot, S32 forceRestart) |
| 69 | { |
nothing calls this directly
no test coverage detected