16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 07:39:19 +02:00

event condition fixes, cab light control enhancement, manual brake control enhancement

This commit is contained in:
tmj-fstate
2020-03-12 22:29:33 +01:00
parent a8b47c3c97
commit e0c1f41474
4 changed files with 28 additions and 30 deletions

View File

@@ -193,7 +193,7 @@ basic_event::event_conditions::deserialize( cParser &Input ) {
flags |= flags::text;
}
Input.getTokens();
if( Input.peek() != "*" ) //"*" - nie brac val1 pod uwage
if( Input.peek() != "*" ) //"*" - nie brac pod uwage
{ // two tokens, operator followed by comparison value
std::string operatorstring;
Input >> operatorstring;
@@ -203,13 +203,14 @@ basic_event::event_conditions::deserialize( cParser &Input ) {
flags |= flags::value1;
}
Input.getTokens();
if( Input.peek() != "*" ) //"*" - nie brac pod uwage
{ // two tokens, operator followed by comparison value
std::string operatorstring;
Input >> operatorstring;
memcompare_value2_operator = comparison_operator_from_string( operatorstring );
Input.getTokens();
Input >> memcompare_value2;
flags |= flags::value1;
flags |= flags::value2;
}
}
}