Update of /cvsroot/netrek/client/netrekxp/src In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv31550/src Modified Files: dmessage.c Log Message: Remove CheckFeatures() - deprecated version of modern feature packets, no longer used by servers. Index: dmessage.c =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/src/dmessage.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- dmessage.c 6 May 2009 07:46:07 -0000 1.13 +++ dmessage.c 9 Jun 2009 01:50:37 -0000 1.14 @@ -25,91 +25,6 @@ static int version_sent = 0; /******************************************************************************/ -/*** CheckFeatures() ***/ -/******************************************************************************/ -static void -CheckFeatures (char *m) -{ - char buf[BUFSIZ]; - char *pek = &m[10]; - - if (strlen (m) < 11) - return; - - while ((*pek == ' ') && (*pek != '\0')) - pek++; - - STRNCPY (buf, "COW: ", 6); - - if (!strcmp (pek, "NO_NEWMACRO")) - { - UseNewMacro = 0; - strcat (buf, pek); - } - - if (!strcmp (pek, "NO_SMARTMACRO")) - { - UseSmartMacro = 0; - strcat (buf, pek); - } - - if (!strcmp (pek, "WHY_DEAD")) - { - why_dead = 1; - strcat (buf, pek); - } - - if (!strcmp (pek, "RC_DISTRESS")) - { - gen_distress = 1; - distmacro = dist_prefered; - strcat (buf, pek); - } - -#ifdef MOTION_MOUSE - if (!strcmp (pek, "NO_CONTINUOUS_MOUSE")) - { - motion_mouse_enablable = 0; - strcat (buf, pek); - } -#endif - -#ifdef MULTILINE_MACROS - if (!strcmp (pek, "MULTIMACROS")) - { - multiline_enabled = 1; - strcat (buf, pek); - } -#endif - - if (!strcmp (pek, "SBHOURS")) - { - SBhours = 1; - strcat (buf, pek); - } - - /* Client spezific notes sent by the server */ - if (!strncmp (pek, "INFO", 4)) - { - strcat (buf, pek); - } - - if (strlen (buf) == 5) - { - strcat (buf, "UNKNOWN FEATURE: "); - strcat (buf, pek); - } - - buf[79] = '\0'; - -#ifdef TOOLS - W_WriteText (toolsWin, 0, 0, textColor, buf, strlen (buf), W_RegularFont); -#else - W_MessageAllowedWindows (WAM_INDIV, 0, 0, W_White, buf, strlen (buf), 0); -#endif -} - -/******************************************************************************/ /*** dmessage() ***/ /******************************************************************************/ void @@ -192,12 +107,6 @@ LineToConsole ("You should probably pester the server god to update....\n"); } } - if (flags == (MCONFIG + MINDIV + MVALID)) - { - if (from == 255) - CheckFeatures (message); - return; - } if ((flags == team) || (flags == take) || (flags == destroy)) { W_MessageAllowedWindows (WAM_TEAM, 0, 0, color, message, len, shipFont (me));