Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings
This commit is contained in:
parent
1ea7ab1f42
commit
23f6fd1633
85 changed files with 246 additions and 496 deletions
|
@ -844,7 +844,6 @@ void BotReplaceReplySynonyms(char *string, unsigned long int context)
|
|||
if (!(syn->context & context)) continue;
|
||||
for (synonym = syn->firstsynonym->next; synonym; synonym = synonym->next)
|
||||
{
|
||||
str2 = synonym->string;
|
||||
//if the synonym is not at the front of the string continue
|
||||
str2 = StringContainsWord(str1, synonym->string, qfalse);
|
||||
if (!str2 || str2 != str1) continue;
|
||||
|
@ -2939,7 +2938,6 @@ int BotAllocChatState(void)
|
|||
//========================================================================
|
||||
void BotFreeChatState(int handle)
|
||||
{
|
||||
bot_chatstate_t *cs;
|
||||
bot_consolemessage_t m;
|
||||
int h;
|
||||
|
||||
|
@ -2953,7 +2951,6 @@ void BotFreeChatState(int handle)
|
|||
botimport.Print(PRT_FATAL, "invalid chat state %d\n", handle);
|
||||
return;
|
||||
} //end if
|
||||
cs = botchatstates[handle];
|
||||
if (LibVarGetValue("bot_reloadcharacters"))
|
||||
{
|
||||
BotFreeChatFile(handle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue