]> granicus.if.org Git - nethack/commitdiff
fix #H1745 - enlightenment about number of times killed
authornethack.rankin <nethack.rankin>
Fri, 14 Nov 2008 00:08:32 +0000 (00:08 +0000)
committernethack.rankin <nethack.rankin>
Fri, 14 Nov 2008 00:08:32 +0000 (00:08 +0000)
     From a bug report, code that always
produced plural feedback (used only for values of N greater than 3) was
unnecessarily handling plural vs singular.  No change in game behavior;
just one less function call in the code.

src/end.c

index 6748a9deec187de40ce50c0dc51968bfc8447118..1635e4fde7d660346f763fecc1c225f25769b2e3 100644 (file)
--- a/src/end.c
+++ b/src/end.c
@@ -1169,8 +1169,8 @@ boolean ask;
                            switch (nkilled) {
                                case 2:  Sprintf(eos(buf)," (twice)");  break;
                                case 3:  Sprintf(eos(buf)," (thrice)");  break;
-                               default: Sprintf(eos(buf)," (%d time%s)",
-                                                nkilled, plur(nkilled));
+                               default: Sprintf(eos(buf)," (%d times)",
+                                                nkilled);
                                         break;
                            }
                        }