… | |
… | |
886 | |
886 | |
887 | /** |
887 | /** |
888 | * Tells the client that here is a player it should start using. |
888 | * Tells the client that here is a player it should start using. |
889 | */ |
889 | */ |
890 | void |
890 | void |
891 | esrv_new_player (player *pl, uint32 weight) |
891 | esrv_new_player (player *pl) |
892 | { |
892 | { |
|
|
893 | sint32 weight = pl->ob->client_weight (); |
|
|
894 | |
893 | packet sl ("player"); |
895 | packet sl ("player"); |
894 | |
896 | |
895 | sl << uint32 (pl->ob->count) |
897 | sl << uint32 (pl->ob->count) |
896 | << uint32 (weight) |
898 | << uint32 (weight) |
897 | << uint32 (pl->ob->face) |
899 | << uint32 (pl->ob->face) |
898 | << data8 (pl->ob->name); |
900 | << data8 (pl->ob->name); |
899 | |
901 | |
|
|
902 | #if 0 |
900 | pl->ns->last_weight = weight; |
903 | pl->ns->last_weight = weight; |
|
|
904 | #endif |
901 | pl->ns->send_packet (sl); |
905 | pl->ns->send_packet (sl); |
902 | SET_FLAG (pl->ob, FLAG_CLIENT_SENT); |
906 | SET_FLAG (pl->ob, FLAG_CLIENT_SENT); |
903 | } |
907 | } |
904 | |
908 | |
905 | /****************************************************************************** |
909 | /****************************************************************************** |