… | |
… | |
238 | * we look at the facecache, and if set, send the image name. |
238 | * we look at the facecache, and if set, send the image name. |
239 | */ |
239 | */ |
240 | void |
240 | void |
241 | client::send_face (faceidx facenum) |
241 | client::send_face (faceidx facenum) |
242 | { |
242 | { |
243 | if (!facecache) |
|
|
244 | { |
|
|
245 | send_drawinfo ( |
|
|
246 | "*** Please enable face caching or use a client that supports it.\n", |
|
|
247 | NDI_RED |
|
|
248 | ); |
|
|
249 | return send_image (facenum); |
|
|
250 | } |
|
|
251 | |
|
|
252 | // never send face 0. ever. it does not exist. |
243 | // never send face 0. ever. it does not exist. |
253 | if (!facenum) |
244 | if (!facenum) |
254 | return; |
245 | return; |
255 | |
246 | |
256 | const facedata *d = face_data (facenum, faceset); |
247 | const facedata *d = face_data (facenum, faceset); |
… | |
… | |
263 | |
254 | |
264 | if (faces_sent[facenum]) |
255 | if (faces_sent[facenum]) |
265 | return; |
256 | return; |
266 | |
257 | |
267 | faces_sent[facenum] = true; |
258 | faces_sent[facenum] = true; |
|
|
259 | |
|
|
260 | if (!facecache) |
|
|
261 | { |
|
|
262 | send_drawinfo ( |
|
|
263 | "\n" |
|
|
264 | "\n" |
|
|
265 | "***\n" |
|
|
266 | "*** WARNING:\n" |
|
|
267 | "*** Your client does not support face/image caching,\n" |
|
|
268 | "*** or it has been disabled. Face caching is mandatory\n" |
|
|
269 | "*** so please enable it or use a newer client.\n" |
|
|
270 | "***\n" |
|
|
271 | "*** Look at your client preferences:\n" |
|
|
272 | "***\n" |
|
|
273 | "*** CFPlus: all known versions automatically enable the facecache.\n" |
|
|
274 | "*** cfclient: use the -cache commandline option.\n" |
|
|
275 | "*** cfclient: map will not redraw automatically (bug).\n" |
|
|
276 | "*** gcfclient: use -cache commandline option, or enable\n" |
|
|
277 | "*** gcfclient: Client=>Configure=>Map & Image=>Cache Images.\n" |
|
|
278 | "*** jcrossclient: your client is broken, use CFPlus or gcfclient.\n" |
|
|
279 | "***\n" |
|
|
280 | "***\n", |
|
|
281 | NDI_RED |
|
|
282 | ); |
|
|
283 | return; |
|
|
284 | //return send_image (facenum); |
|
|
285 | } |
268 | |
286 | |
269 | packet sl; |
287 | packet sl; |
270 | |
288 | |
271 | if (force_face0) |
289 | if (force_face0) |
272 | sl << "face " << uint16 (facenum); |
290 | sl << "face " << uint16 (facenum); |
… | |
… | |
305 | if (!d) |
323 | if (!d) |
306 | { |
324 | { |
307 | LOG (llevError, "client::send_image (%d) out of bounds??\n", facenum); |
325 | LOG (llevError, "client::send_image (%d) out of bounds??\n", facenum); |
308 | return; |
326 | return; |
309 | } |
327 | } |
|
|
328 | |
|
|
329 | faces_sent[facenum] = true; |
|
|
330 | |
|
|
331 | if (force_image_newmap) |
|
|
332 | force_newmap = true; |
310 | |
333 | |
311 | packet sl; |
334 | packet sl; |
312 | |
335 | |
313 | sl << (image2 ? "image2 " : "image ") |
336 | sl << (image2 ? "image2 " : "image ") |
314 | << uint32 (facenum); |
337 | << uint32 (facenum); |