Skip to content

Commit

Permalink
Main: ScriptTranslator - deprecate bool symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed May 31, 2022
1 parent 06286e6 commit 5f06d69
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion OgreMain/src/OgreScriptTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3930,9 +3930,12 @@ namespace Ogre{
}
else
{
compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
compiler->addError(ScriptCompiler::CE_INVALIDPARAMETERS, prop->file, prop->line,
"incorrect boolean constant declaration");
}

compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file, prop->line,
"bool. Use uint instead");
}
else
{
Expand Down Expand Up @@ -4350,6 +4353,8 @@ namespace Ogre{
}
case BCT_BOOL:
{
compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file, prop->line,
"bool. Use uint instead");
std::vector<bool> tmp;
if(_getVector(arrayStart, arrayEnd, tmp, arraySz))
{
Expand Down

0 comments on commit 5f06d69

Please sign in to comment.