diff options
Diffstat (limited to 'src/base')
| -rw-r--r-- | src/base/item.c | 4 | ||||
| -rw-r--r-- | src/base/proto.c | 9 |
2 files changed, 10 insertions, 3 deletions
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); } |