From ee9ad145843cfc4a744d421237f21fe5efb72aa7 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Fri, 27 Feb 2015 22:22:27 -0500 Subject: [PATCH] Always show normal engine when max shield is 1. --- src/player.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/player.cpp b/src/player.cpp index 4a2d02a..9e5d0c7 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -269,7 +269,7 @@ void doPlayer() } } - if (player.shield > engine.lowShield) + if ((player.maxShield <= 1) || (player.shield > engine.lowShield)) addEngine(&player); shapeToUse = player.face; @@ -280,7 +280,8 @@ void doPlayer() limitCharAdd(&player.hit, -1, 0, 100); blit(shipShape[shapeToUse], (int)player.x, (int)player.y); - if ((player.shield <= engine.lowShield) && (rand() % 5 < 1)) + if ((player.maxShield > 1) && (player.shield <= engine.lowShield) && + (rand() % 5 < 1)) addExplosion(player.x + rrand(-10, 10), player.y + rrand(-10, 20), E_SMOKE); } else