1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2001,2007 Mark Wedel |
5 | * Copyright (©) 2001,2007 Mark Wedel |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
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) |