diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-10 19:18:51 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-10 19:18:51 +0000 |
| commit | d783595135ca768ae14f08aa4033dea35ed0458b (patch) | |
| tree | b653d2b0bc34e6d903902d19a6c3b2f1d1ead176 /src/gun.c | |
| parent | ec218f423abf60b6e776d7a5a9ebee408de45a60 (diff) | |
- dopisane objekty do prvej areny
- opravy zvuku ( ak sa neinicalizuje, program sa sprava ako keby sa inicalizoval )
- opravy v sietovom multiplayeri
- porgram ma parametre ( zatial nezdokumentovane, je to iba vidiet zo zdrojaka )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@4 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/gun.c')
| -rw-r--r-- | src/gun.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 : |