View Single Post
Re: bug in bot naming
Old
  (#2)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: bug in bot naming - 06-07-2004

thats an old bug.
what version do you have?
here's how it was fixed.
Code:
  // a name has been given
   else
   {
      // If Detailnames are on, see if we NEED to attach Clan Tag
      if (g_bDetailNames)
      {
         if ((strstr (bot_name, "[POD]") != NULL)
             || (strstr (bot_name, "[P*D]") != NULL)
             || (strstr (bot_name, "[P0D]") != NULL))
         {
            strncpy (c_name, bot_name, 32);

            if (bot_personality == 0)
               c_name[2] = 'O';
            else if (bot_personality == 1)
               c_name[2] = '*';
            else
               c_name[2] = '0';
         }
         else
         {
            if (bot_personality == 0)
               snprintf (c_name, 32, "[POD]%s (%d)", bot_name, skill);
            else if (bot_personality == 1)
               snprintf (c_name, 32, "[P*D]%s (%d)", bot_name, skill);
            else
               snprintf (c_name, 32, "[P0D]%s (%d)", bot_name, skill);
         }
      }
      else
         strncpy (c_name, bot_name, 32);
  
Reply With Quote