mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
removed a redundant else and made unary + work also in the console
This commit is contained in:
parent
2158bfe285
commit
ae54f34f25
2 changed files with 5 additions and 3 deletions
|
@ -650,13 +650,15 @@ namespace Compiler
|
|||
mOperators.push_back ('m');
|
||||
mTokenLoc = loc;
|
||||
return true;
|
||||
} else if (code ==Scanner::S_plus && mNextOperand) {
|
||||
}
|
||||
|
||||
if (code ==Scanner::S_plus && mNextOperand)
|
||||
{
|
||||
// Also unary, but +, just ignore it
|
||||
mTokenLoc = loc;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if (code==Scanner::S_open)
|
||||
{
|
||||
if (mNextOperand)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue