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

Function M_DoFadein

Source/monster.cpp:2311–2325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2309}
2310
2311BOOL M_DoFadein(int i)
2312{
2313 if ((DWORD)i >= MAXMONSTERS)
2314 app_fatal("M_DoFadein: Invalid monster %d", i);
2315
2316 if ((!(monster[i]._mFlags & MFLAG_LOCK_ANIMATION) || monster[i]._mAnimFrame != 1)
2317 && (monster[i]._mFlags & MFLAG_LOCK_ANIMATION || monster[i]._mAnimFrame != monster[i]._mAnimLen)) {
2318 return FALSE;
2319 }
2320
2321 M_StartStand(i, monster[i]._mdir);
2322 monster[i]._mFlags &= ~MFLAG_LOCK_ANIMATION;
2323
2324 return TRUE;
2325}
2326
2327BOOL M_DoFadeout(int i)
2328{

Callers 1

ProcessMonstersFunction · 0.85

Calls 2

app_fatalFunction · 0.85
M_StartStandFunction · 0.85

Tested by

no test coverage detected