]> granicus.if.org Git - nethack/commitdiff
B01001
authornethack.allison <nethack.allison>
Wed, 3 Jul 2002 00:11:22 +0000 (00:11 +0000)
committernethack.allison <nethack.allison>
Wed, 3 Jul 2002 00:11:22 +0000 (00:11 +0000)
<Someone> reported this bug (B01001):
"Tower of flame" as cause of death _still_ lacks "killed by"
prefix.

src/explode.c
src/topten.c

index b755e1f9cbf9e5c939fe5f79615d8f5b5fe9030b..543b199d0df05e3cff3b0b6d4902cd274757d9d2 100644 (file)
@@ -347,6 +347,10 @@ int expltype;
                            killer_format = NO_KILLER_PREFIX;
                            Sprintf(killer_buf, "caught %sself in %s own %s",
                                    uhim(), uhis(), str);
+                       } else if (!strncmpi(str,"tower of flame", 8) ||
+                                  !strncmpi(str,"fireball", 8)) {
+                           killer_format = KILLED_BY_AN;
+                           Strcpy(killer_buf, str);
                        } else {
                            killer_format = KILLED_BY;
                            Strcpy(killer_buf, str);
index 03fbac4899708bb48bd1d8147adac72b8b4f30ac..ec2253a80736485e11594a6b4e6595b7f63ce25b 100644 (file)
@@ -78,7 +78,7 @@ STATIC_DCL void FDECL(nsb_unmung_line,(char*));
 /* must fit with end.c; used in rip.c */
 NEARDATA const char *killed_by_prefix[] = {
        "killed by ", "choked on ", "poisoned by ", "", "drowned in ",
-       "", "dissolved in ", "crushed to death by ", "petrified by ",
+       "burned by ", "dissolved in ", "crushed to death by ", "petrified by ",
        "turned to slime by ", "killed by ", "", "", "", "", ""
 };