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.36 by pippijn, Sat Jan 6 14:42:31 2007 UTC vs.
Revision 1.37 by root, Mon Jan 8 18:18:36 2007 UTC

143 client *s = clients [i]; 143 client *s = clients [i];
144 player *pl = s->pl; 144 player *pl = s->pl;
145 145
146 if (pl && pl->ns && !pl->ns->destroyed ()) 146 if (pl && pl->ns && !pl->ns->destroyed ())
147 { 147 {
148 client *ns = pl->ns;
149
148 /* Update the players stats once per tick. More efficient than 150 /* Update the players stats once per tick. More efficient than
149 * sending them whenever they change, and probably just as useful 151 * sending them whenever they change, and probably just as useful
150 */ 152 */
151 esrv_update_stats (pl); 153 esrv_update_stats (pl);
152 154
153 if (pl->last_weight != -1 && pl->last_weight != WEIGHT (pl->ob)) 155 if (ns->last_weight != -1 && ns->last_weight != WEIGHT (pl->ob))
154 { 156 {
155 esrv_update_item (UPD_WEIGHT, pl->ob, pl->ob); 157 esrv_update_item (UPD_WEIGHT, pl->ob, pl->ob);
156 if (pl->last_weight != WEIGHT (pl->ob)) 158 if (ns->last_weight != WEIGHT (pl->ob))
157 LOG (llevError, "esrv_update_item(UPD_WEIGHT) did not set player weight: is %lu, should be %lu\n", 159 LOG (llevError, "esrv_update_item(UPD_WEIGHT) did not set player weight: is %lu, should be %lu\n",
158 (unsigned long) pl->last_weight, WEIGHT (pl->ob)); 160 (unsigned long) ns->last_weight, WEIGHT (pl->ob));
159 } 161 }
160 162
161 draw_client_map (pl->ob); 163 draw_client_map (pl->ob);
162 164
163 if (s->update_look) 165 if (s->update_look)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines