diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-08 21:17:12 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-08 21:17:12 +0000 |
| commit | 0eda3185ba30d433029c9a7e725529a801c93d80 (patch) | |
| tree | 3eeed16eb926fc3529f051704fd53070670e7124 /src/base | |
| parent | 7386e93e32575bae21006d0300cbff4cf7a40926 (diff) | |
- 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
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); } |