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

Function DeleteMonsterList

Source/monster.cpp:4493–4517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4491}
4492
4493void DeleteMonsterList()
4494{
4495 int i;
4496 for (i = 0; i < MAX_PLRS; i++) {
4497 if (monster[i]._mDelFlag) {
4498 monster[i]._mx = 1;
4499 monster[i]._my = 0;
4500 monster[i]._mfutx = 0;
4501 monster[i]._mfuty = 0;
4502 monster[i]._moldx = 0;
4503 monster[i]._moldy = 0;
4504 monster[i]._mDelFlag = FALSE;
4505 }
4506 }
4507
4508 i = MAX_PLRS;
4509 while (i < nummonsters) {
4510 if (monster[monstactive[i]]._mDelFlag) {
4511 DeleteMonster(i);
4512 i = 0; // TODO: check if this should be MAX_PLRS.
4513 } else {
4514 i++;
4515 }
4516 }
4517}
4518
4519void ProcessMonsters()
4520{

Callers 2

ProcessMonstersFunction · 0.85
RemovePlrMissilesFunction · 0.85

Calls 1

DeleteMonsterFunction · 0.85

Tested by

no test coverage detected