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.76 by root, Wed Nov 16 23:42:03 2016 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2001 Mark Wedel 5 * Copyright (©) 2001 Mark Wedel
6 * Copyright (©) 1992 Frank Tore Johansen 6 * Copyright (©) 1992 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 8 * Deliantra is free software: you can redistribute it and/or modify it under
9 * the terms of the Affero GNU General Public License as published by the 9 * the terms of the Affero GNU General Public License as published by the
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