1
0

FurnaceRecipe parser: Made the parser more forgiving.

Errors don't cause a stop in the parsing, but rather just skip the offending line.
This commit is contained in:
Mattes D 2014-06-26 17:52:37 +02:00
parent b90b0a1dff
commit 67e3c645d3

View File

@ -94,7 +94,7 @@ void cFurnaceRecipe::ReloadRecipes(void)
!ReadMandatoryNumber(BeginPos, "0123456789", ParsingLine, Line, IBurnTime, true) // Read item burn time - last value
)
{
return;
break;
}
// Add to fuel list:
@ -129,7 +129,7 @@ void cFurnaceRecipe::ReloadRecipes(void)
!ReadOptionalNumbers(BeginPos, ":", "012456789", ParsingLine, Line, OItemCount, OItemHealth, true) // Read result count (and optionally health) - last value
)
{
return;
break;
}
// Add to recipe list