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

Function M_DoGotHit

Source/monster.cpp:2491–2505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2489}
2490
2491BOOL M_DoGotHit(int i)
2492{
2493 if ((DWORD)i >= MAXMONSTERS)
2494 app_fatal("M_DoGotHit: Invalid monster %d", i);
2495
2496 if (monster[i].MType == NULL)
2497 app_fatal("M_DoGotHit: Monster %d \"%s\" MType NULL", i, monster[i].mName);
2498 if (monster[i]._mAnimFrame == monster[i]._mAnimLen) {
2499 M_StartStand(i, monster[i]._mdir);
2500
2501 return TRUE;
2502 }
2503
2504 return FALSE;
2505}
2506
2507void M_UpdateLeader(int i)
2508{

Callers 1

ProcessMonstersFunction · 0.85

Calls 2

app_fatalFunction · 0.85
M_StartStandFunction · 0.85

Tested by

no test coverage detected