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

Function M_StartFadeout

Source/monster.cpp:1809–1830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1807}
1808
1809void M_StartFadeout(int i, int md, BOOL backwards)
1810{
1811 if ((DWORD)i >= MAXMONSTERS)
1812 app_fatal("M_StartFadeout: Invalid monster %d", i);
1813 if (monster[i].MType == NULL)
1814 app_fatal("M_StartFadeout: Monster %d \"%s\" MType NULL", i, monster[i].mName);
1815
1816 NewMonsterAnim(i, &monster[i].MType->Anims[MA_SPECIAL], md);
1817 monster[i]._mmode = MM_FADEOUT;
1818 monster[i]._mxoff = 0;
1819 monster[i]._myoff = 0;
1820 monster[i]._mfutx = monster[i]._mx;
1821 monster[i]._mfuty = monster[i]._my;
1822 monster[i]._moldx = monster[i]._mx;
1823 monster[i]._moldy = monster[i]._my;
1824 M_CheckEFlag(i);
1825 monster[i]._mdir = md;
1826 if (backwards) {
1827 monster[i]._mFlags |= MFLAG_LOCK_ANIMATION;
1828 monster[i]._mAnimFrame = monster[i]._mAnimLen;
1829 }
1830}
1831
1832void M_StartHeal(int i)
1833{

Callers 3

MAI_SneakFunction · 0.85
MAI_FiremanFunction · 0.85
MAI_CounselorFunction · 0.85

Calls 3

app_fatalFunction · 0.85
NewMonsterAnimFunction · 0.85
M_CheckEFlagFunction · 0.85

Tested by

no test coverage detected