Browse Source

Merge pull request #2232 from mewpull/bugfix-MI_Apoca

missiles: add BUGFIX for MI_Apoca when handling golems
pull/2283/head
Andi 5 years ago committed by GitHub
parent
commit
2bf6eeb125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Source/missiles.cpp

1
Source/missiles.cpp

@ -5413,6 +5413,7 @@ void MI_Apoca(int i)
exit = FALSE;
for (j = missile[i]._miVar2; j < missile[i]._miVar3 && !exit; j++) {
for (k = missile[i]._miVar4; k < missile[i]._miVar5 && !exit; k++) {
// BUGFIX: was `dMonster[k][j] > MAX_PLRS-1`, should be `dMonster[k][j]-1 >= MAX_PLRS`.
if (dMonster[k][j] > MAX_PLRS - 1 && !nSolidTable[dPiece[k][j]]) {
#ifdef HELLFIRE
if (LineClear(missile[i]._mix, missile[i]._miy, k, j)) {

Loading…
Cancel
Save