]> granicus.if.org Git - nethack/commitdiff
touchstone follow-up
authornethack.allison <nethack.allison>
Sat, 16 Mar 2002 14:08:35 +0000 (14:08 +0000)
committernethack.allison <nethack.allison>
Sat, 16 Mar 2002 14:08:35 +0000 (14:08 +0000)
- Handle gold materials a littel better.

src/apply.c

index f127f17b57600985c8c3dde09c9ff2fbded0bf7c..00a9c47b62a6e39d27db8adc1f55e1c9ca525c7d 100644 (file)
@@ -1887,11 +1887,6 @@ struct obj *otmp;
                goto see_streaks;       /* okay even if not touchstone */
                /*NOTREACHED*/
                break;
-           case GOLD:
-               color = "golden";
-               goto see_streaks;
-               /*NOTREACHED*/
-               break;
            }
            return;
        }
@@ -1908,6 +1903,11 @@ struct obj *otmp;
            return;
        }
 
+       if (material == GOLD) {
+           color = "golden";
+           goto see_streaks;
+       }
+
        switch (obj->oclass) {
          case GOLD_CLASS:
            color = "golden";