--- deliantra/server/socket/loop.C 2008/04/22 07:28:05 1.74 +++ deliantra/server/socket/loop.C 2008/05/06 16:55:26 1.77 @@ -1,7 +1,7 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * Copyright (©) 2002-2003,2007 Mark Wedel & The Crossfire Development Team * Copyright (©) 1992,2007 Frank Tore Johansen * @@ -117,6 +117,8 @@ if (!pl || destroyed ()) return; + pl->dirty = true; + /* Update the players stats once per tick. More efficient than * sending them whenever they change, and probably just as useful */ @@ -125,7 +127,10 @@ sint32 weight = pl->ob->client_weight (); if (last_weight != weight) - esrv_update_item (UPD_WEIGHT, pl->ob, pl->ob); + { + pl->ob->update_stats (); + esrv_update_item (UPD_WEIGHT, pl->ob, pl->ob); + } draw_client_map (pl);