From 9058b5c0bfc9a05c9004cfbbcdd3bb85d80ed6fc Mon Sep 17 00:00:00 2001 From: oroborus Date: Fri, 2 May 2008 16:57:36 +0000 Subject: - o obsluhu odstaneni streli pri vybuchu sa stara server - server sa _nemusi_ restartovat kazdych 49 dni - uptime sa rata v sekundach, v statuse je aj nazov areny - drobne upravy v kode ( vymazanie mensej duplicity kodu ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@49 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/item.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/item.c') 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--; } -- cgit v1.2.3