| 4491 | } |
| 4492 | |
| 4493 | void 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 | |
| 4519 | void ProcessMonsters() |
| 4520 | { |
no test coverage detected