From 91cc3e3f129ca8448de54ba0ed109d91ead9fe4d Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 14 Dec 2025 20:23:22 +0200 Subject: [PATCH] Replace a weight magic number --- src/hack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hack.c b/src/hack.c index fb356ab78..c27e86357 100644 --- a/src/hack.c +++ b/src/hack.c @@ -947,7 +947,7 @@ cant_squeeze_thru(struct monst *mon) /* lugging too much junk? */ amt = (mon == &gy.youmonst) ? inv_weight() + weight_cap() : curr_mon_load(mon); - if (amt > 600) + if (amt > WT_TOOMUCH_DIAGONAL) return 2; /* Sokoban restriction applies to hero only */