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/item.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/item.c')
| -rw-r--r-- | src/item.c | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -273,6 +273,8 @@ void eventConflictShotWithItem(list_t *listItem, list_t *listShot) for( i = 0 ; i < listShot->count ; i++ ) { + bool_t isDelShot = FALSE; + thisShot = (shot_t *)listShot->list[i]; assert( thisShot != NULL ); @@ -298,12 +300,19 @@ void eventConflictShotWithItem(list_t *listItem, list_t *listShot) j--; } break; + case ITEM_EXPLOSION : case ITEM_BIG_EXPLOSION : - delListItem(listShot, i, destroyShot); + isDelShot = TRUE; break; } } + + if( isDelShot ) + { + delListItem(listShot, i, destroyShot); + i--; + } } } @@ -345,9 +354,12 @@ void eventGiveTuxItem(tux_t *tux, list_t *listItem) break; case ITEM_MINE : - delListItem(listItem, i, destroyItem); - addList(listItem, newItem(x, y, ITEM_EXPLOSION) ); - i--; + if( tux->bonus != BONUS_GHOST ) + { + delListItem(listItem, i, destroyItem); + addList(listItem, newItem(x, y, ITEM_EXPLOSION) ); + i--; + } break; case ITEM_EXPLOSION : |