From 1a4e2ea71eb8fe6462dc711c85c392bff0e9cf79 Mon Sep 17 00:00:00 2001 From: Layla Marchant Date: Tue, 26 May 2020 16:34:44 -0400 Subject: [PATCH] Removed some weird, pointless code for when Kline is disabled. The code caused Kline's systemPower to be restored to full when disabled. This would have had no effect on the code; the systemPower variable is only used to add the FL_DISABLED flag when it reaches 0, and restoring systemPower has no effect on this. This might have been an attempt to make it impossible to disable Kline, but it wouldn't have worked that way (it might simply not have been noticed because disabling Kline would take a ridiculous amount of time and is unlikely to happen without conscious effort). --- src/alien.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/alien.c b/src/alien.c index 5cc0dbc..55d5f15 100644 --- a/src/alien.c +++ b/src/alien.c @@ -2272,7 +2272,5 @@ void alien_hurt(Object *alien, Object *attacker, int damage, int ion) } alien->systemPower = 0; - if (alien->classDef == CD_KLINE) - alien->systemPower = alien->maxShield; } }