Replace a weight magic number

This commit is contained in:
Pasi Kallinen
2025-12-14 20:23:22 +02:00
parent 758528f094
commit 91cc3e3f12
+1 -1
View File
@@ -947,7 +947,7 @@ cant_squeeze_thru(struct monst *mon)
/* lugging too much junk? */ /* lugging too much junk? */
amt = (mon == &gy.youmonst) ? inv_weight() + weight_cap() amt = (mon == &gy.youmonst) ? inv_weight() + weight_cap()
: curr_mon_load(mon); : curr_mon_load(mon);
if (amt > 600) if (amt > WT_TOOMUCH_DIAGONAL)
return 2; return 2;
/* Sokoban restriction applies to hero only */ /* Sokoban restriction applies to hero only */