--- deliantra/server/socket/loop.C 2008/04/22 07:01:47 1.73 +++ deliantra/server/socket/loop.C 2008/04/23 07:49:57 1.76 @@ -117,20 +117,20 @@ 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 */ esrv_update_stats (pl); -#if 0 - if (last_weight != -1 && last_weight != pl->ob->client_weight ()) + sint32 weight = pl->ob->client_weight (); + + if (last_weight != weight) { + pl->ob->update_stats (); esrv_update_item (UPD_WEIGHT, pl->ob, pl->ob); - if (last_weight != pl->ob->client_weight ()) - LOG (llevError, "esrv_update_item(UPD_WEIGHT) did not set player weight: is %lu, should be %lu\n", - (unsigned long) last_weight, pl->ob->client_weight ()); } -#endif draw_client_map (pl);