Always show normal engine when max shield is 1.
This commit is contained in:
parent
66c413f913
commit
ee9ad14584
|
@ -269,7 +269,7 @@ void doPlayer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player.shield > engine.lowShield)
|
if ((player.maxShield <= 1) || (player.shield > engine.lowShield))
|
||||||
addEngine(&player);
|
addEngine(&player);
|
||||||
|
|
||||||
shapeToUse = player.face;
|
shapeToUse = player.face;
|
||||||
|
@ -280,7 +280,8 @@ void doPlayer()
|
||||||
limitCharAdd(&player.hit, -1, 0, 100);
|
limitCharAdd(&player.hit, -1, 0, 100);
|
||||||
|
|
||||||
blit(shipShape[shapeToUse], (int)player.x, (int)player.y);
|
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);
|
addExplosion(player.x + rrand(-10, 10), player.y + rrand(-10, 20), E_SMOKE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue