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

Function M_DoStand

Source/monster.cpp:1878–1899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1876}
1877
1878BOOL M_DoStand(int i)
1879{
1880 MonsterStruct *Monst;
1881
1882 if ((DWORD)i >= MAXMONSTERS)
1883 app_fatal("M_DoStand: Invalid monster %d", i);
1884 if (monster[i].MType == NULL)
1885 app_fatal("M_DoStand: Monster %d \"%s\" MType NULL", i, monster[i].mName);
1886
1887 Monst = &monster[i];
1888 if (Monst->MType->mtype == MT_GOLEM)
1889 Monst->_mAnimData = Monst->MType->Anims[MA_WALK].Data[Monst->_mdir];
1890 else
1891 Monst->_mAnimData = Monst->MType->Anims[MA_STAND].Data[Monst->_mdir];
1892
1893 if (Monst->_mAnimFrame == Monst->_mAnimLen)
1894 M_Enemy(i);
1895
1896 Monst->_mVar2++;
1897
1898 return FALSE;
1899}
1900
1901BOOL M_DoWalk(int i)
1902{

Callers 1

ProcessMonstersFunction · 0.85

Calls 2

app_fatalFunction · 0.85
M_EnemyFunction · 0.85

Tested by

no test coverage detected