--- deliantra/server/socket/request.C 2007/03/14 13:05:30 1.76 +++ deliantra/server/socket/request.C 2007/03/14 15:44:47 1.77 @@ -564,8 +564,28 @@ * it either has to be here or init_sockets needs to be exported. */ void -AddMeCmd (char *buf, int len, client * ns) +AddMeCmd (char *buf, int len, client *ns) { + // face caching is mandatory + if (!ns->facecache) + { + ns->send_drawinfo ( + "\n" + "\n" + "***\n" + "*** WARNING:\n" + "*** Your client does not support face/image caching,\n" + "*** or it has been disabled. Face caching is mandatory\n" + "*** so please enable it or use a newer client.\n" + "***\n" + "*** I will proceed as if face caching were enabled.\n" + "\n" + "***\n", + NDI_RED + ); + //ns->facecache = true; + } + INVOKE_CLIENT (ADDME, ns, ARG_DATA (buf, len)); } @@ -686,6 +706,16 @@ } /** + * client requested an image. send it rate-limited + * before flushing. + */ +void +AskFaceCmd (char *buf, int len, client *ns) +{ + ns->askface.push_back (atoi (buf)); +} + +/** * Tells client the picture it has to use * to smooth a picture number given as argument. */ @@ -1253,13 +1283,6 @@ estartlen = esl.length (); } - else - { - /* suppress compiler warnings */ - ewhatstart = 0; - ewhatflag = 0; - estartlen = 0; - } /* x,y are the real map locations. ax, ay are viewport relative * locations.