]> granicus.if.org Git - nethack/commitdiff
Return computed result instead of constant.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Wed, 9 Mar 2016 10:05:28 +0000 (11:05 +0100)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Wed, 9 Mar 2016 10:05:28 +0000 (11:05 +0100)
src/trap.c

index 716962de1d48d25547e258128dddef2f46cfe353..d69b50aa2fc8c654d7a103ac9b35f81fd8d51e26 100644 (file)
@@ -4524,7 +4524,7 @@ boolean *noticed; /* set to true iff hero notices the effect; */
         --force_mintrap;
         /* mon might now be on the migrating monsters list */
     }
-    return TRUE;
+    return result;
 }
 
 /* only called when the player is doing something to the chest directly */