From 6b5953f3f54e1193639c8717d8a1639f0197bad6 Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 20 Dec 2021 20:30:07 -0800 Subject: [PATCH] Remove extra "s" I manually rebased 774f8c31a789e2f0da4f979c08b51b9cd65ba44e and didn't notice this. The C++ way of doing things where you add together strings (or worse, bit shift them) is convoluted and lets you easily miss things like this. If this was a printf format string it'd be "trinket%ss." which would stick out like a sore thumb. --- desktop_version/src/Render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index cb5cbaa0..40c1ec6b 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -987,7 +987,7 @@ static void menurender(void) std::string tempstring = "You rescued all the crewmates!"; graphics.Print(0, 100, tempstring, tr, tg, tb, true); - tempstring = "And you found " + help.number(game.ndmresulttrinkets) + " trinket" + (game.ndmresulttrinkets == 1 ? "" : "s") + "s."; + tempstring = "And you found " + help.number(game.ndmresulttrinkets) + " trinket" + (game.ndmresulttrinkets == 1 ? "" : "s") + "."; graphics.Print(0, 110, tempstring, tr, tg, tb, true); graphics.Print(0, 160, "A new trophy has been awarded and", tr, tg, tb, true);