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

Comparing deliantra/server/socket/request.C (file contents):
Revision 1.76 by root, Wed Mar 14 13:05:30 2007 UTC vs.
Revision 1.77 by root, Wed Mar 14 15:44:47 2007 UTC

562 * This is what takes care of it. We tell the client how things worked out. 562 * This is what takes care of it. We tell the client how things worked out.
563 * I am not sure if this file is the best place for this function. however, 563 * I am not sure if this file is the best place for this function. however,
564 * it either has to be here or init_sockets needs to be exported. 564 * it either has to be here or init_sockets needs to be exported.
565 */ 565 */
566void 566void
567AddMeCmd (char *buf, int len, client * ns) 567AddMeCmd (char *buf, int len, client *ns)
568{ 568{
569 // face caching is mandatory
570 if (!ns->facecache)
571 {
572 ns->send_drawinfo (
573 "\n"
574 "\n"
575 "***\n"
576 "*** WARNING:\n"
577 "*** Your client does not support face/image caching,\n"
578 "*** or it has been disabled. Face caching is mandatory\n"
579 "*** so please enable it or use a newer client.\n"
580 "***\n"
581 "*** I will proceed as if face caching were enabled.\n"
582 "\n"
583 "***\n",
584 NDI_RED
585 );
586 //ns->facecache = true;
587 }
588
569 INVOKE_CLIENT (ADDME, ns, ARG_DATA (buf, len)); 589 INVOKE_CLIENT (ADDME, ns, ARG_DATA (buf, len));
570} 590}
571 591
572/** Reply to ExtendedInfos command */ 592/** Reply to ExtendedInfos command */
573void 593void
681 snprintf (temp, sizeof (temp), "%d", i); 701 snprintf (temp, sizeof (temp), "%d", i);
682 strcat (cmdback, temp); 702 strcat (cmdback, temp);
683 } 703 }
684 704
685 ns->send_packet (cmdback); 705 ns->send_packet (cmdback);
706}
707
708/**
709 * client requested an image. send it rate-limited
710 * before flushing.
711 */
712void
713AskFaceCmd (char *buf, int len, client *ns)
714{
715 ns->askface.push_back (atoi (buf));
686} 716}
687 717
688/** 718/**
689 * Tells client the picture it has to use 719 * Tells client the picture it has to use
690 * to smooth a picture number given as argument. 720 * to smooth a picture number given as argument.
1251 << uint8 (extendedinfos) 1281 << uint8 (extendedinfos)
1252 << uint8 (eentrysize); 1282 << uint8 (eentrysize);
1253 1283
1254 estartlen = esl.length (); 1284 estartlen = esl.length ();
1255 } 1285 }
1256 else
1257 {
1258 /* suppress compiler warnings */
1259 ewhatstart = 0;
1260 ewhatflag = 0;
1261 estartlen = 0;
1262 }
1263 1286
1264 /* x,y are the real map locations. ax, ay are viewport relative 1287 /* x,y are the real map locations. ax, ay are viewport relative
1265 * locations. 1288 * locations.
1266 */ 1289 */
1267 ay = 0; 1290 ay = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines