]> granicus.if.org Git - nethack/commitdiff
R06008 - Ludios level in score list
authorcohrs <cohrs>
Sun, 4 Aug 2002 23:39:42 +0000 (23:39 +0000)
committercohrs <cohrs>
Sun, 4 Aug 2002 23:39:42 +0000 (23:39 +0000)
<Someone> reported that the Ludios level is shown on death.  It's not
shown on the tombstone, but it was displayed in the topten list.
Now it's not shown in the topten list either.

src/topten.c

index ec2253a80736485e11594a6b4e6595b7f63ce25b..0191997e5bcb7a2f14775b920c718264257e4d09 100644 (file)
@@ -629,8 +629,9 @@ boolean so;
                }
                Sprintf(eos(linebuf), fmt, arg);
            } else {
-               Sprintf(eos(linebuf), " in %s on level %d",
-                       dungeons[t1->deathdnum].dname, t1->deathlev);
+               Sprintf(eos(linebuf), " in %s", dungeons[t1->deathdnum].dname);
+               if (t1->deathdnum != knox_level.dnum)
+                   Sprintf(eos(linebuf), " on level %d", t1->deathlev);
                if (t1->deathlev != t1->maxlvl)
                    Sprintf(eos(linebuf), " [max %d]", t1->maxlvl);
            }