about summary refs log tree commit diff stats
path: root/072scenario_screen.cc
diff options
context:
space:
mode:
Diffstat (limited to '072scenario_screen.cc')
-rw-r--r--072scenario_screen.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/072scenario_screen.cc b/072scenario_screen.cc
index 06566b7d..d7e98f2f 100644
--- a/072scenario_screen.cc
+++ b/072scenario_screen.cc
@@ -125,7 +125,10 @@ void check_screen(const string& contents) {
         raise << "\nF - " << Current_scenario->name << ": expected screen location (" << i/screen_width << ", " << i%screen_width << ") to contain '" << expected_contents.at(i) << "' instead of '" << static_cast<char>(Memory[screen_data_start+i]) << "'\n";
       else
         raise << "expected screen location (" << i/screen_width << ", " << i%screen_width << ") to contain '" << expected_contents.at(i) << "' instead of '" << static_cast<char>(Memory[screen_data_start+i]) << "'\n";
-      Passed = false;
+      if (!Hide_warnings) {
+        Passed = false;
+        ++Num_failures;
+      }
       return;
     }
   }