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.60 by root, Thu Jul 12 19:36:58 2007 UTC vs.
Revision 1.61 by root, Tue Jul 24 04:55:35 2007 UTC

166 { 166 {
167 ++scrub_idx; 167 ++scrub_idx;
168 168
169 if (!faces_sent [scrub_idx]) 169 if (!faces_sent [scrub_idx])
170 { 170 {
171 send_face (scrub_idx); 171 send_face (scrub_idx, -120);
172 flush_fx (); 172 flush_fx ();
173 173
174 bg_scrub = 1; // send up to one face per tick, unless an image was requested 174 bg_scrub = 1; // send up to one face per tick, unless an image was requested
175 break; 175 break;
176 } 176 }
177 } 177 }
178 178
179 rate_avail = max_rate - outputbuffer_len (); 179 rate_avail = max_rate - outputbuffer_len ();
180 } 180 }
181 else if (!outq) // only send when bandwidht allows it 181 else if (!outq) // only send when bandwidth allows it
182 { 182 {
183 int ol = outputbuffer_len (); 183 int ol = outputbuffer_len ();
184 184
185 rate_avail = min (max_rate, rate_avail + max_rate); 185 rate_avail = min (max_rate, rate_avail + max_rate);
186 rate_avail -= ol; 186 rate_avail -= ol;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines