From 0eda3185ba30d433029c9a7e725529a801c93d80 Mon Sep 17 00:00:00 2001 From: oroborus Date: Tue, 8 Jul 2008 21:17:12 +0000 Subject: - do widgetu textfiled sa zmesti IP adresa ( zatial aspon IPv4 ) - v arene je vzdy kostantny pocet zbarni/bonsov ( implicitny je 10, nastavuje sa v configu pomocou ITEM ) - oprava chyby, tux s binusom hidden sa moze teleportovat - oprava chyb v moduloch pipe teleport a wall git-svn-id: http://opensvn.csie.org/tuxanci_ng@125 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/item.c | 4 +++- src/base/proto.c | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src/base') diff --git a/src/base/item.c b/src/base/item.c index 842da13..ccbdd62 100644 --- a/src/base/item.c +++ b/src/base/item.c @@ -582,9 +582,11 @@ void eventGiveTuxListItem(tux_t *tux, space_t *spaceItem) eventGiveTuxItem(tux, thisItem, spaceItem); +#ifdef PUBLIC_SERVER + addNewItem(spaceItem, ID_UNKNOWN); +#endif if( getNetTypeGame() == NET_GAME_TYPE_SERVER ) { - //proto_send_item_server(PROTO_SEND_ALL, NULL, tux, thisItem); proto_send_newtux_server(PROTO_SEND_ALL, NULL, tux); } } diff --git a/src/base/proto.c b/src/base/proto.c index b5f8d39..052a0c4 100644 --- a/src/base/proto.c +++ b/src/base/proto.c @@ -382,8 +382,13 @@ void proto_send_newtux_server(int type, client_t *client, tux_t *tux) } else { - //x = tux->x; - //y = tux->y; + getTuxProportion(tux, &x, &y, NULL, NULL); + } + + if( type == PROTO_SEND_ONE && + tux->bonus == BONUS_HIDDEN && + client->tux == tux ) + { getTuxProportion(tux, &x, &y, NULL, NULL); } -- cgit v1.2.3