From 828b56d4dfc9125459dc2205579e2da7ec37e144 Mon Sep 17 00:00:00 2001 From: Julie Marchant Date: Sat, 4 May 2019 12:47:05 -0400 Subject: [PATCH] Fixed broken code for Classic difficulty. The mistake caused the Classic game to deviate from the original by not allowing Kline to drop mines in the Elamale mission. For some reason I accidentally put that check in for Moebo instead. Whoops! --- src/alien.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alien.cpp b/src/alien.cpp index 9fe5cda..8077b75 100644 --- a/src/alien.cpp +++ b/src/alien.cpp @@ -1515,7 +1515,7 @@ void alien_setKlineAI(Object *alien) case 2: // Kline only attacks when he is ready! if ((!(alien->flags & FL_NOFIRE)) && - ((game.area == MISN_MOEBO) || + ((game.area == MISN_ELAMALE) || game.difficulty != DIFFICULTY_ORIGINAL)) alien->flags |= FL_DROPMINES; break; @@ -1926,7 +1926,7 @@ void alien_hurt(Object *alien, Object *attacker, int damage, int ion) audio_playSound(SFX_HIT, alien->x, alien->y); if (alien->AIType == AI_EVASIVE) alien->thinktime = 0; - + if (alien->shield < 1) alien_destroy(alien, attacker);