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

Comparing deliantra/server/socket/image.C (file contents):
Revision 1.74 by root, Sun Nov 11 18:21:21 2012 UTC vs.
Revision 1.75 by root, Wed Nov 28 12:39:21 2012 UTC

257} 257}
258 258
259void 259void
260client::invalidate_face (faceidx idx) 260client::invalidate_face (faceidx idx)
261{ 261{
262 if (!faces_sent [idx])
263 return;
264
262 faces_sent [idx] = false; 265 faces_sent [idx] = false;
263 force_newmap = true; 266 send_face (idx);
267 //TODO: check for active ix and abort it.
264} 268}
265 269
266void 270void
267client::invalidate_all_faces () 271client::invalidate_all_faces ()
268{ 272{
269 faces_sent.reset (); 273 for (faceidx i = 0; i < faces_sent.size (); ++i)
270 force_newmap = true; 274 invalidate_face (i);
271} 275}
272 276

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines