@@ -757,8 +757,8 @@ namespace vizdoom {
757
757
if (key == " available_buttons" || key == " availablebuttons" ){
758
758
std::vector<std::string> str_buttons;
759
759
int start_line = line_number;
760
- bool success = DoomGame::ParseListProperty (line_number, val, file, str_buttons );
761
- if (success ){
760
+ bool parse_success = DoomGame::ParseListProperty (line_number, val, file, str_buttons );
761
+ if (parse_success ){
762
762
unsigned int i = 0 ;
763
763
try {
764
764
std::vector<Button > buttons;
@@ -774,7 +774,7 @@ namespace vizdoom {
774
774
}
775
775
catch (std::exception ){
776
776
std::cerr<<" WARNING! Loading config from: \" " <<filename<<" \" . Unsupported value in lines " <<start_line<<" -" <<line_number<<" : " <<str_buttons[i]<<" . Lines ignored.\n " ;
777
-
777
+ success = false ;
778
778
}
779
779
}
780
780
else {
@@ -788,8 +788,8 @@ namespace vizdoom {
788
788
if (key == " available_game_variables" || key == " availablegamevariables" ){
789
789
std::vector<std::string> str_variables;
790
790
int start_line = line_number;
791
- bool success = DoomGame::ParseListProperty (line_number, val, file, str_variables );
792
- if (success ){
791
+ bool parse_success = DoomGame::ParseListProperty (line_number, val, file, str_variables );
792
+ if (parse_success ){
793
793
unsigned int i = 0 ;
794
794
try {
795
795
std::vector<GameVariable> variables;
@@ -805,7 +805,7 @@ namespace vizdoom {
805
805
}
806
806
catch (std::exception ){
807
807
std::cerr<<" WARNING! Loading config from: \" " <<filename<<" \" . Unsupported value in lines " <<start_line<<" -" <<line_number<<" : " <<str_variables[i]<<" . Lines ignored.\n " ;
808
-
808
+ success = false ;
809
809
}
810
810
}
811
811
else {
0 commit comments