MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / Exit

Method Exit

src/SB/Game/zNPCGoalVillager.cpp:107–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107S32 zNPCGoalPlayerNear::Exit(F32 dt, void* updCtxt)
108{
109 zNPCVillager* npc = (zNPCVillager*)psyche->clt_owner;
110
111 if (talk_glyph != NULL)
112 {
113 talk_glyph->Discard();
114 }
115 talk_glyph = NULL;
116
117 if (talk_font != NULL)
118 {
119 talk_font->Off(npc, 0);
120 }
121 talk_font = NULL;
122
123 npc->TossMyConverse();
124 flg_plyrnear = 0;
125 npc->RestoreColFlags();
126
127 return xGoal::Exit(dt, updCtxt);
128}
129
130S32 zNPCGoalPlayerNear::Suspend(F32 dt, void* updCtxt)
131{

Callers

nothing calls this directly

Calls 6

OffMethod · 0.80
TossMyConverseMethod · 0.80
RestoreColFlagsMethod · 0.80
WonderOfTalkingMethod · 0.80
ExitFunction · 0.50
DiscardMethod · 0.45

Tested by

no test coverage detected