summaryrefslogtreecommitdiff
path: root/src/item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.c')
-rw-r--r--src/item.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/item.c b/src/item.c
index a84b97b..22691e6 100644
--- a/src/item.c
+++ b/src/item.c
@@ -372,7 +372,11 @@ void eventConflictShotWithItem(list_t *listItem, list_t *listShot)
conflictSpace(thisShot->x, thisShot->y, thisShot->w, thisShot->h,
thisItem->x, thisItem->y, thisItem->w, thisItem->h) )
{
- proto_send_item_server(PROTO_SEND_ALL, NULL, NULL, thisItem);
+ if( getNetTypeGame() == NET_GAME_TYPE_SERVER )
+ {
+ proto_send_item_server(PROTO_SEND_ALL, NULL, NULL, thisItem);
+ }
+
mineExplosion(listItem, thisItem);
j--;
}
@@ -403,6 +407,7 @@ static void eventTuxIsDeadWithItem(tux_t *tux, item_t *item)
if( tux->bonus == BONUS_TELEPORT )
{
tuxTeleport(tux);
+ return;
}
if( item->author != NULL && item->author != tux )