summaryrefslogtreecommitdiff
path: root/src/item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.c')
-rw-r--r--src/item.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/item.c b/src/item.c
index 70b43fb..3e4e6e5 100644
--- a/src/item.c
+++ b/src/item.c
@@ -370,6 +370,11 @@ void eventConflictShotWithItem(list_t *listItem, list_t *listShot)
item_t *thisItem;
int i, j;
+ if( getNetTypeGame() == NET_GAME_TYPE_CLIENT )
+ {
+ return;
+ }
+
assert( listItem != NULL );
assert( listShot != NULL );
@@ -416,7 +421,11 @@ void eventConflictShotWithItem(list_t *listItem, list_t *listShot)
if( isDelShot )
{
- //printf("del shot\n");
+ if( getNetTypeGame() == NET_GAME_TYPE_SERVER )
+ {
+ proto_send_delshot_server(PROTO_SEND_ALL, NULL, thisShot);
+ }
+
delListItem(listShot, i, destroyShot);
i--;
}