From f0272c2a2eb8a38abbacf524e298e0de602d9ade Mon Sep 17 00:00:00 2001 From: Sergey Semushin Date: Sun, 15 Sep 2019 10:52:29 +0300 Subject: [PATCH] hellfire: CanPut: bin exact. --- Source/inv.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index c4db12322..92cf71756 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -2198,7 +2198,9 @@ BOOL CanPut(int x, int y) return FALSE; } - if (!currlevel && (dMonster[x][y] || dMonster[x + 1][y + 1])) + if (currlevel == 0 && dMonster[x][y] != 0) + return FALSE; + if (currlevel == 0 && dMonster[x + 1][y + 1] != 0) return FALSE; return TRUE;