From 54fab7da39a2a13a9b3e1afc6b1069b697466222 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 23 Aug 2026 17:16:07 +0000 Subject: [PATCH] Highlight HUD achievements and fix color leaks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Highlight new high score achievements in Bold Yellow (`CLR_CTRL`) with sparkle emoji (`✨ NEW BEST! 🥳`). - Append `CLR_RESET` after game mode indicator (`[HARD MODE]` / `[NORMAL MODE]`) and HUD line to prevent ANSI color leakage across carriage returns and exit. Co-authored-by: aidasofialily-cmd <247843425+aidasofialily-cmd@users.noreply.github.com> --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b9144b7..42d2012 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -144,9 +144,9 @@ int main() { if (updateUI) { std::cout << "\r" ERASE_LINE << CLR_SCORE << "Score: " << formatWithCommas(score) << CLR_RESET << " | High: " << formatWithCommas(highscore) << " " - << (hardMode ? CLR_HARD "[HARD MODE]" : CLR_NORM "[NORMAL MODE]") - << (score > initialHighscore ? " NEW BEST! 🥳 (was " + formatWithCommas(initialHighscore) + ")" : "") - << std::flush; + << (hardMode ? CLR_HARD "[HARD MODE]" : CLR_NORM "[NORMAL MODE]") << CLR_RESET + << (score > initialHighscore ? " " CLR_CTRL "✨ NEW BEST! 🥳" CLR_RESET " (was " + formatWithCommas(initialHighscore) + ")" : "") + << CLR_RESET << std::flush; updateUI = false; } }