diff options
Diffstat (limited to 'src/animate.cpp')
-rw-r--r-- | src/animate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/animate.cpp b/src/animate.cpp index b1031dc..a7b6173 100644 --- a/src/animate.cpp +++ b/src/animate.cpp @@ -17,6 +17,7 @@ void animate::pre_fracture(const network &n) { lv = std::numeric_limits<long double>::lowest(); avalanches = {}; boost::remove_edge_if(trivial, G); + seen_guy = false; glClearColor(1.0f, 1.0f, 1.0f, 1.0f ); glLineWidth(5); @@ -135,7 +136,7 @@ void animate::bond_broken(const network& n, const current_info& cur, unsigned i) } glEnd(); glFlush(); - if (nw > 2) {std::cout << "\n"; getchar();} + if (nw > 2 && !seen_guy) {seen_guy = true; getchar();} } void animate::post_fracture(network &n) { |