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,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002-2003,2007 Mark Wedel & The Crossfire Development Team |
|
|
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
|
|
7 | * |
5 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
6 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
7 | * the terms of the Affero GNU General Public License as published by the |
10 | * Free Software Foundation, either version 3 of the License, or (at your |
8 | * Free Software Foundation, either version 3 of the License, or (at your |
11 | * option) any later version. |
9 | * option) any later version. |
… | |
… | |
126 | pl->dirty = true; |
124 | pl->dirty = true; |
127 | |
125 | |
128 | /* Update the players stats once per tick. More efficient than |
126 | /* Update the players stats once per tick. More efficient than |
129 | * sending them whenever they change, and probably just as useful |
127 | * sending them whenever they change, and probably just as useful |
130 | */ |
128 | */ |
|
|
129 | pl->need_updated_stats (); |
131 | esrv_update_stats (pl); |
130 | esrv_update_stats (pl); |
|
|
131 | |
|
|
132 | if (pl->ns->update_spells) |
|
|
133 | esrv_update_spells (pl); |
132 | |
134 | |
133 | sint32 weight = pl->ob->client_weight (); |
135 | sint32 weight = pl->ob->client_weight (); |
134 | |
136 | |
135 | if (last_weight != weight) |
137 | if (last_weight != weight) |
136 | { |
138 | { |