ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/loop.C
(Generate patch)

Comparing deliantra/server/socket/loop.C (file contents):
Revision 1.72 by root, Thu Mar 13 12:20:52 2008 UTC vs.
Revision 1.74 by root, Tue Apr 22 07:28:05 2008 UTC

120 /* Update the players stats once per tick. More efficient than 120 /* Update the players stats once per tick. More efficient than
121 * sending them whenever they change, and probably just as useful 121 * sending them whenever they change, and probably just as useful
122 */ 122 */
123 esrv_update_stats (pl); 123 esrv_update_stats (pl);
124 124
125 if (last_weight != -1 && last_weight != WEIGHT (pl->ob)) 125 sint32 weight = pl->ob->client_weight ();
126 { 126
127 if (last_weight != weight)
127 esrv_update_item (UPD_WEIGHT, pl->ob, pl->ob); 128 esrv_update_item (UPD_WEIGHT, pl->ob, pl->ob);
128 if (last_weight != WEIGHT (pl->ob))
129 LOG (llevError, "esrv_update_item(UPD_WEIGHT) did not set player weight: is %lu, should be %lu\n",
130 (unsigned long) last_weight, WEIGHT (pl->ob));
131 }
132 129
133 draw_client_map (pl); 130 draw_client_map (pl);
134 131
135 if (update_look) 132 if (update_look)
136 esrv_draw_look (pl); 133 esrv_draw_look (pl);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines