summaryrefslogtreecommitdiff
path: root/src/gun.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-02-09 20:49:15 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-02-09 20:49:15 +0000
commitec218f423abf60b6e776d7a5a9ebee408de45a60 (patch)
tree47304e931ff78ad6dc62226d845ec6faa7b0af2e /src/gun.c
parent601a366b8c665f760463259552fedd7be43e5754 (diff)
- oprava chyby, pri zmeneni zbrane zo samopala, alebo lassera ( informoval xHire )
- prepis sietoveho protokolu, teraz je bezpecnejsi git-svn-id: http://opensvn.csie.org/tuxanci_ng@3 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
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)