summaryrefslogtreecommitdiff
path: root/src/gun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun.c')
-rw-r--r--src/gun.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gun.c b/src/gun.c
index f7fdc67..9e5fd5d 100644
--- a/src/gun.c
+++ b/src/gun.c
@@ -217,11 +217,17 @@ static void putInGunMine(tux_t *tux)
if( isFreeSpace(x, y, ITEM_MINE_WIDTH, ITEM_MINE_HEIGHT) )
{
addList(arena->listItem, newItem(x, y, ITEM_MINE) );
+ tux->shot[tux->gun]--;
}
}
void shotInGun(tux_t *tux)
{
+ if( tux->bonus != BONUS_SHOT && tux->gun != GUN_MINE )
+ {
+ tux->shot[tux->gun]--;
+ }
+
switch( tux->gun )
{
case GUN_SIMPLE :