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

Function CheckDungeonClear

Source/debug.cpp:28–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void CheckDungeonClear()
29{
30 int i, j;
31
32 for (j = 0; j < MAXDUNY; j++) {
33 for (i = 0; i < MAXDUNX; i++) {
34 if (dMonster[i][j])
35 app_fatal("Monsters not cleared");
36 if (dPlayer[i][j])
37 app_fatal("Players not cleared");
38
39 dMonsDbg[currlevel][i][j] = dFlags[i][j] & BFLAG_VISIBLE;
40 dFlagDbg[currlevel][i][j] = dFlags[i][j] & BFLAG_POPULATED;
41 }
42 }
43}
44
45#ifdef _DEBUG
46void GiveGoldCheat()

Callers 1

InitMonstersFunction · 0.85

Calls 1

app_fatalFunction · 0.85

Tested by

no test coverage detected