From 6dbcded21e7e9614b967b922987be6bcf3f3fe58 Mon Sep 17 00:00:00 2001 From: oroborus Date: Fri, 4 Apr 2008 18:46:15 +0000 Subject: - moznost nastavit si klavesy na ovladanie v ~/.tuxanci-ng/keycontrol.conf - moznost prekladat texty do roznych jazykov, defult jazyk je EN, nastavenie je v ~/.tuxanci-ng/lang.conf - moznost nastavit server pomocou konfiguraku ./server.conf - uptime v sekudach a samorestartovaci casocvac tam este _NIE_ _JE_ git-svn-id: http://opensvn.csie.org/tuxanci_ng@39 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/item.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/item.c') 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 ) -- cgit v1.2.3