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.62 by root, Sun Nov 15 18:04:00 2009 UTC vs.
Revision 1.68 by root, Wed Jan 4 08:49:01 2012 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 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2001,2007 Mark Wedel 5 * Copyright (©) 2001 Mark Wedel
6 * Copyright (©) 1992,2007 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
10 * Free Software Foundation, either version 3 of the License, or (at your 10 * Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version. 11 * option) any later version.
110 { 110 {
111 LOG (llevError | logBacktrace, "client::send_face (%d) out of bounds??\n", facenum); 111 LOG (llevError | logBacktrace, "client::send_face (%d) out of bounds??\n", facenum);
112 return; 112 return;
113 } 113 }
114 114
115 // refuse to send non-image faces 115 // refuse to send non-image faces unless requested
116 if (!fx_want [f->type]) 116 if (!fx_want [f->type])
117 return; 117 return;
118 118
119 if (faces_sent [facenum]) 119 if (faces_sent [facenum])
120 return; 120 return;
121 121
122 faces_sent[facenum] = true; 122 faces_sent [facenum] = true;
123 123
124 fxface.push_back (facenum); 124 fxface.push_back (facenum);
125} 125}
126 126
127void client::flush_fx () 127void client::flush_fx ()
230 send_packet (sl); 230 send_packet (sl);
231 231
232 anims_sent[anim_num] = 1; 232 anims_sent[anim_num] = 1;
233} 233}
234 234
235void
236client::invalidate_face (faceidx idx)
237{
238 faces_sent [idx] = false;
239 force_newmap = true;
240}
241
242void
243client::invalidate_all_faces ()
244{
245 faces_sent.reset ();
246 force_newmap = true;
247}
248

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines