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

Function M_CheckEFlag

Source/monster.cpp:1202–1233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202void M_CheckEFlag(int i)
1203{
1204 int f, j;
1205 int x, y;
1206 WORD *m;
1207
1208 x = monster[i]._mx - 1;
1209 y = monster[i]._my + 1;
1210
1211 if (x < 0 || y >= MAXDUNY) {
1212 monster[i]._meflag = FALSE;
1213 return;
1214 }
1215
1216 f = 0;
1217 // BUGFIX check (x > 0 && y < MAXDUNY) (fixed)
1218 m = dpiece_defs_map_2[x][y].mt;
1219 if (m >= dpiece_defs_map_2[0][0].mt) {
1220 for (j = 2; j < 10; j++) {
1221 f |= m[j];
1222 }
1223 } else {
1224 monster[i]._meflag = FALSE;
1225 return;
1226 }
1227
1228 if (f | dArch[x][y])
1229 monster[i]._meflag = TRUE;
1230 else {
1231 monster[i]._meflag = FALSE;
1232 }
1233}
1234
1235void M_StartStand(int i, int md)
1236{

Callers 15

M_StartStandFunction · 0.85
M_StartSpStandFunction · 0.85
M_StartWalkFunction · 0.85
M_StartWalk2Function · 0.85
M_StartWalk3Function · 0.85
M_StartAttackFunction · 0.85
M_StartRAttackFunction · 0.85
M_StartRSpAttackFunction · 0.85
M_StartSpAttackFunction · 0.85
M_StartEatFunction · 0.85
M_GetKnockbackFunction · 0.85
M_StartHitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected