]> granicus.if.org Git - nethack/commitdiff
stone to flesh bit
authornethack.allison <nethack.allison>
Wed, 16 Jul 2003 23:13:51 +0000 (23:13 +0000)
committernethack.allison <nethack.allison>
Wed, 16 Jul 2003 23:13:51 +0000 (23:13 +0000)
Since the crysknife is the only MINERAL object in the
game that isn't affected by the "stone to flesh" spell,
and the only thing that makes it to the default
case on the switch statement in zap.c, make it
obvious that it isn't an oversight that nothing happens.
(it wasn't an oversight, right?)

src/zap.c

index e60efcd535d56ce21aaad195a003bdc890e3d335..47cc93e469d9e211ff8b0d4168c976ecaf767eef 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -1674,6 +1674,8 @@ smell:
                        else
                            Norep("You smell a delicious smell.");
                        break;
+                   case WEAPON_CLASS:  /* crysknife */
+                       /* fall through */
                    default:
                        res = 0;
                        break;