]> granicus.if.org Git - nethack/commitdiff
couple of comments
authornethack.rankin <nethack.rankin>
Sun, 1 Apr 2007 04:23:47 +0000 (04:23 +0000)
committernethack.rankin <nethack.rankin>
Sun, 1 Apr 2007 04:23:47 +0000 (04:23 +0000)
src/makemon.c
src/mkobj.c

index 3cc915f44fae6658b05a3f5cf000358783833434..f8d4164510422eaca40bd0c45c32ac3c1c05b396 100644 (file)
@@ -407,7 +407,7 @@ register struct monst *mtmp;
                        (void)mongets(mtmp, FLAIL);
                        break;
                }
-               /* prevent djinnis and mail daemons from leaving objects when
+               /* prevent djinn and mail daemons from leaving objects when
                 * they vanish
                 */
                if (!is_demon(ptr)) break;
index 647222b96841f0a418479ed25ca4ee5b51727870..511de4073be75d1b1a0bcc466f658299f823fc64 100644 (file)
@@ -1570,10 +1570,9 @@ struct monst *mtmp;
 }
 
 /*
- * Free obj from whatever list it is on in preperation of deleting it or
- * moving it elsewhere.  This will perform all high-level consequences
- * involved with removing the item.  E.g. if the object is in the hero's
- * inventory and confers heat resistance, the hero will lose it.
+ * Free obj from whatever list it is on in preparation for deleting it
+ * or moving it elsewhere; obj->where will end up set to OBJ_FREE.
+ * Doesn't handle unwearing of objects in hero's or monsters' inventories.
  *
  * Object positions:
  *     OBJ_FREE        not on any list