mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 03:23:52 +00:00
fixed lots of tabs and space
This commit is contained in:
parent
d30a3f9271
commit
bb38a40bcb
53 changed files with 2695 additions and 2695 deletions
|
|
@ -65,7 +65,7 @@ void BadWordFilter::create()
|
|||
{
|
||||
Con::addVariable("pref::enableBadWordFilter", TypeBool, &filteringEnabled,
|
||||
"@brief If true, the bad word filter will be enabled.\n\n"
|
||||
"@ingroup Game");
|
||||
"@ingroup Game");
|
||||
gBadWordFilter = new BadWordFilter;
|
||||
gBadWordFilter->addBadWord("shit");
|
||||
gBadWordFilter->addBadWord("fuck");
|
||||
|
|
@ -251,7 +251,7 @@ DefineEngineFunction(addBadWord, bool, (const char* badWord),,
|
|||
|
||||
"@ingroup Game")
|
||||
{
|
||||
return gBadWordFilter->addBadWord(badWord);
|
||||
return gBadWordFilter->addBadWord(badWord);
|
||||
}
|
||||
|
||||
DefineEngineFunction(filterString, const char *, (const char* baseString, const char* replacementChars), (nullAsType<const char*>(), nullAsType<const char*>()),
|
||||
|
|
@ -279,17 +279,17 @@ DefineEngineFunction(filterString, const char *, (const char* baseString, const
|
|||
|
||||
"@ingroup Game")
|
||||
{
|
||||
const char *replaceStr = NULL;
|
||||
const char *replaceStr = NULL;
|
||||
|
||||
if(replacementChars)
|
||||
replaceStr = replacementChars;
|
||||
else
|
||||
replaceStr = gBadWordFilter->getDefaultReplaceStr();
|
||||
if(replacementChars)
|
||||
replaceStr = replacementChars;
|
||||
else
|
||||
replaceStr = gBadWordFilter->getDefaultReplaceStr();
|
||||
|
||||
char *ret = Con::getReturnBuffer(dStrlen(baseString) + 1);
|
||||
dStrcpy(ret, baseString);
|
||||
gBadWordFilter->filterString(ret, replaceStr);
|
||||
return ret;
|
||||
char *ret = Con::getReturnBuffer(dStrlen(baseString) + 1);
|
||||
dStrcpy(ret, baseString);
|
||||
gBadWordFilter->filterString(ret, replaceStr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
DefineEngineFunction(containsBadWords, bool, (const char* text),,
|
||||
|
|
@ -316,17 +316,17 @@ DefineEngineFunction(containsBadWords, bool, (const char* text),,
|
|||
"// Otherwise print the original text\n"
|
||||
"if(containsBadWords(%userText))\n"
|
||||
"{\n"
|
||||
" // Filter the string\n"
|
||||
" %filteredText = filterString(%userText, %replacementChars);\n\n"
|
||||
" // Print filtered text\n"
|
||||
" echo(%filteredText);\n"
|
||||
" // Filter the string\n"
|
||||
" %filteredText = filterString(%userText, %replacementChars);\n\n"
|
||||
" // Print filtered text\n"
|
||||
" echo(%filteredText);\n"
|
||||
"}\n"
|
||||
"else\n"
|
||||
" echo(%userText);\n\n"
|
||||
" echo(%userText);\n\n"
|
||||
"@endtsexample\n"
|
||||
|
||||
"@ingroup Game")
|
||||
{
|
||||
return gBadWordFilter->containsBadWords(text);
|
||||
return gBadWordFilter->containsBadWords(text);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue