Fix a db lookup regression (PleasingFungus)
authorEdgar A. Bering IV <trizor@gmail.com>
Fri, 26 Feb 2021 21:03:44 +0000 (23:03 +0200)
committerEdgar A. Bering IV <trizor@gmail.com>
Fri, 26 Feb 2021 21:03:48 +0000 (23:03 +0200)
crawl-ref/source/item-name.cc

index c53bdb8..316b995 100644 (file)
@@ -1592,7 +1592,7 @@ string item_def::name_aux(description_level_type desc, bool terse, bool ident,
             }
         }
 
-        if (cursed() && terse && !qualname)
+        if (cursed() && terse && !dbname && !qualname)
             buff << " (curse)";
         break;
 
@@ -1729,7 +1729,7 @@ string item_def::name_aux(description_level_type desc, bool terse, bool ident,
                      << " ring";
             }
         }
-        if (cursed() && terse && !qualname)
+        if (cursed() && terse && !dbname && !qualname)
             buff << " (curse)";
         break;
     }
@@ -1795,7 +1795,7 @@ string item_def::name_aux(description_level_type desc, bool terse, bool ident,
         else
             buff << "staff of " << staff_type_name(item_typ);
 
-        if (cursed() && terse && !qualname)
+        if (cursed() && terse && !dbname && !qualname)
             buff << " (curse)";
         break;