MCPcopy Create free account
hub / github.com/diasurgical/devilution / M_DoSpStand

Function M_DoSpStand

Source/monster.cpp:2639–2655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2637}
2638
2639BOOL M_DoSpStand(int i)
2640{
2641 if ((DWORD)i >= MAXMONSTERS)
2642 app_fatal("M_DoSpStand: Invalid monster %d", i);
2643 if (monster[i].MType == NULL)
2644 app_fatal("M_DoSpStand: Monster %d \"%s\" MType NULL", i, monster[i].mName);
2645
2646 if (monster[i]._mAnimFrame == monster[i].MData->mAFNum2)
2647 PlayEffect(i, 3);
2648
2649 if (monster[i]._mAnimFrame == monster[i]._mAnimLen) {
2650 M_StartStand(i, monster[i]._mdir);
2651 return TRUE;
2652 }
2653
2654 return FALSE;
2655}
2656
2657BOOL M_DoDelay(int i)
2658{

Callers 1

ProcessMonstersFunction · 0.85

Calls 3

app_fatalFunction · 0.85
PlayEffectFunction · 0.85
M_StartStandFunction · 0.85

Tested by

no test coverage detected