]> granicus.if.org Git - nethack/commitdiff
weapon shattering follow-up
authornethack.allison <nethack.allison>
Wed, 6 Mar 2002 02:05:14 +0000 (02:05 +0000)
committernethack.allison <nethack.allison>
Wed, 6 Mar 2002 02:05:14 +0000 (02:05 +0000)
include/obj.h

index 5bcf9d0dca7a1d774c673002016547d30ced37cc..e118b1d2e670b252dd0adb69126d3bdcf814100e 100644 (file)
@@ -223,9 +223,12 @@ struct obj {
                                 (obj)->otyp == TOUCHSTONE)
 
 /* misc */
+#ifdef KOPS
 #define is_flimsy(otmp)                (objects[(otmp)->otyp].oc_material <= LEATHER || \
                                 (otmp)->otyp == RUBBER_HOSE)
-
+#else
+#define is_flimsy(otmp)                (objects[(otmp)->otyp].oc_material <= LEATHER)
+#endif
 
 /* helpers, simple enough to be macros */
 #define is_plural(o)   ((o)->quan > 1 || \