X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ftop10scorescreen.cpp;fp=bigscreen%2Ftop10scorescreen.cpp;h=672a906d9fd5261e011f58ec60beb8384c208304;hp=f756447243dee4f49f69a9992726a81ea6770d07;hb=6bd21f38c6a860ba75ea98f2404c83d9bd55498a;hpb=7490ced526e0ac9a19d62b95a81244c1d01df226 diff --git a/bigscreen/top10scorescreen.cpp b/bigscreen/top10scorescreen.cpp index f756447..672a906 100644 --- a/bigscreen/top10scorescreen.cpp +++ b/bigscreen/top10scorescreen.cpp @@ -26,6 +26,7 @@ bool Top10ScoreScreen::check_invalidated() return true; if (!scores_changed.get_flag()) return false; + scores_changed.reset_flag(); // check that there are indeed changes, otherwise don't bother std::vector scores; @@ -33,10 +34,11 @@ bool Top10ScoreScreen::check_invalidated() for (std::vector::const_iterator i = scores.begin(); i != scores.end(); ++i) { if (seen_topscore.count(*i) == 0) { + valid = false; return true; } } - + return false; }