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.39 by pippijn, Sat Jan 20 13:47:17 2007 UTC vs.
Revision 1.41 by root, Wed Mar 14 15:44:47 2007 UTC

136 if ((time (NULL) - cst_lst.time_start) >= CS_LOGTIME) 136 if ((time (NULL) - cst_lst.time_start) >= CS_LOGTIME)
137 write_cs_stats (); 137 write_cs_stats ();
138#endif 138#endif
139 139
140 //TODO: should not be done here, either 140 //TODO: should not be done here, either
141 for (int i = 0; i < clients.size (); ++i) 141 for (unsigned i = 0; i < clients.size (); ++i)
142 { 142 {
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 ())
162 162
163 draw_client_map (pl->ob); 163 draw_client_map (pl->ob);
164 164
165 if (s->update_look) 165 if (s->update_look)
166 esrv_draw_look (pl->ob); 166 esrv_draw_look (pl->ob);
167
168 while (!ns->askface.empty () && ns->outputbuffer_len () < ns->max_rate)
169 {
170 // use a lifo to send most recently requested images
171 faceidx face = ns->askface.back ();
172 ns->askface.pop_back ();
173
174 ns->send_image (face);
175 }
167 } 176 }
168 177
169 s->refcnt_chk (); 178 s->refcnt_chk ();
170 } 179 }
171} 180}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines