1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 10:39:40 +00:00

Merge pull request #1267 from Allofich/scriptsign

Treat =< and => as == in scripts
This commit is contained in:
scrawl 2017-04-21 15:34:34 +02:00 committed by GitHub
commit 7998583a7b

View file

@ -408,6 +408,11 @@ namespace Compiler
special = S_cmpEQ;
else if (c=='=')
special = S_cmpEQ;
else if (c == '>' || c == '<') // Treat => and =< as ==
{
special = S_cmpEQ;
mErrorHandler.warning (std::string("invalid operator =") + c + ", treating it as ==", mLoc);
}
else
{
special = S_cmpEQ;