summaryrefslogtreecommitdiff
path: root/src/gun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun.c')
-rw-r--r--src/gun.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gun.c b/src/gun.c
index 199324f..f7fdc67 100644
--- a/src/gun.c
+++ b/src/gun.c
@@ -134,6 +134,7 @@ static void timer_addShotTimer(void *p)
{
tux_t *tux;
int id;
+ int gun;
id = * ((int *)p);
free(p);
@@ -142,7 +143,10 @@ static void timer_addShotTimer(void *p)
if( tux == NULL )return;
+ gun = tux->gun;
+ tux->gun = GUN_SIMPLE;
addShot(tux, 0, 0, +15, 0);
+ tux->gun = gun;
}
static void shotInGunTommy(tux_t *tux)
@@ -159,6 +163,7 @@ static void timer_addLaserTimer(void *p)
{
tux_t *tux;
int id;
+ int gun;
id = * ((int *)p);
free(p);
@@ -167,7 +172,10 @@ static void timer_addLaserTimer(void *p)
if( tux == NULL )return;
+ gun = tux->gun;
+ tux->gun = GUN_LASSER;
addShot(tux, 0, 0, +20, 0);
+ tux->gun = gun;
}
static void shotInGunLasser(tux_t *tux)