diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-15 19:28:48 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-15 19:28:48 +0000 |
| commit | a8bec57e7a9be7b1fa36ef8be618db4e46cbd599 (patch) | |
| tree | 1af5e651f4ff628f99393109e3352dbd7b1f39f4 /src/gun.c | |
| parent | c8223ce77a4dbf57be272d10c4e1d31f69bd516e (diff) | |
- oprava chyby #0007 #0006 #0005
- nova zbran bombball
- client dostava svoju vlastnu poziciu od servera kazdych 5000 ms
git-svn-id: http://opensvn.csie.org/tuxanci_ng@45 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/gun.c')
| -rw-r--r-- | src/gun.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -96,7 +96,11 @@ static void addShot(tux_t *tux,int x, int y, int px, int py) return; } - if( tux->gun == GUN_LASSER ) + if( tux->gun == GUN_BOMBBALL ) + { + gun = GUN_BOMBBALL; + } + else if( tux->gun == GUN_LASSER ) { gun = GUN_LASSER; } @@ -269,6 +273,11 @@ static void putInGunMine(tux_t *tux) } } +static void shotInGunBombball(tux_t *tux) +{ + addShot(tux, 0, 0, +10, 0); +} + void shotInGun(tux_t *tux) { if( tux->bonus != BONUS_SHOT && tux->gun != GUN_MINE ) @@ -308,6 +317,9 @@ void shotInGun(tux_t *tux) #endif shotInGunLasser(tux); break; + case GUN_BOMBBALL : + shotInGunBombball(tux); + break; case GUN_MINE : putInGunMine(tux); break; |