mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
completed .fiz file loader; minor parser enhancement, wheel slip and schedule loader bug fixes.
This commit is contained in:
4
parser.h
4
parser.h
@@ -134,7 +134,9 @@ cParser::operator>>( bool &Right ) {
|
||||
|
||||
if( true == this->tokens.empty() ) { return *this; }
|
||||
|
||||
Right = ( this->tokens.front() == "true" );
|
||||
Right = ( ( this->tokens.front() == "true" )
|
||||
|| ( this->tokens.front() == "yes" )
|
||||
|| ( this->tokens.front() == "1" ) );
|
||||
this->tokens.pop_front();
|
||||
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user