drop some useless return statements

This commit is contained in:
/dev/humancontroller 2013-04-14 18:33:26 +02:00 committed by Zack Middleton
parent bbd17d75ce
commit 9d626b6a12
15 changed files with 0 additions and 20 deletions

View file

@ -760,14 +760,11 @@ void Characteristic_String(int character, int index, char *buf, int size)
{
strncpy(buf, ch->c[index].value.string, size-1);
buf[size-1] = '\0';
return;
} //end if
else
{
botimport.Print(PRT_ERROR, "characteristic %d is not a string\n", index);
return;
} //end else if
return;
} //end of the function Characteristic_String
//===========================================================================
//

View file

@ -1506,7 +1506,6 @@ void BotMatchVariable(bot_match_t *match, int variable, char *buf, int size)
{
strcpy(buf, "");
} //end else
return;
} //end of the function BotMatchVariable
//===========================================================================
//

View file

@ -691,7 +691,6 @@ void BotGoalName(int number, char *name, int size)
} //end for
} //end for
strcpy(name, "");
return;
} //end of the function BotGoalName
//===========================================================================
//