1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 01:15:33 +00:00

Allow stray special characters before a begin statement

This commit is contained in:
Capostrophic 2019-01-16 00:08:42 +03:00
parent c01672a364
commit 166d757a19
2 changed files with 9 additions and 6 deletions

View file

@ -19,6 +19,7 @@
Bug #4775: Slowfall effect resets player jumping flag
Bug #4778: Interiors of Illusion puzzle in Sotha Sil Expanded mod is broken
Bug #4800: Standing collisions are not updated immediately when an object is teleported without a cell change
Bug #4803: Stray special characters before begin statement break script compilation
Feature #2229: Improve pathfinding AI
Feature #3442: Default values for fallbacks from ini file
Feature #3610: Option to invert X axis

View file

@ -94,14 +94,16 @@ namespace Compiler
bool FileParser::parseSpecial (int code, const TokenLoc& loc, Scanner& scanner)
{
// Ignore any junk special characters
if (mState == BeginState)
{
if (code != Scanner::S_newline)
reportWarning ("Ignoring stray special character before begin statement", loc);
return true;
}
if (code==Scanner::S_newline)
{
if (mState==BeginState)
{
// ignore empty lines
return true;
}
if (mState==BeginCompleteState)
{
// parse the script body