From 85a7151d37993f677f569092001ba7b70d903265 Mon Sep 17 00:00:00 2001 From: Sergey Semushin Date: Sun, 26 May 2019 14:24:02 +0300 Subject: [PATCH] Fix min diff in SpecialAutoPlace. --- Source/inv.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index 46ffceb85..563fd17b6 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -542,15 +542,15 @@ BOOL SpecialAutoPlace(int pnum, int ii, int sx, int sy, BOOL saveflag) yy += 10; } if (!done) { - if (sx <= 1 && sy <= 1) { + if (sx > 1 || sy > 1) { + done = FALSE; + } else { for (i = 0; i < MAXBELTITEMS; i++) { if (plr[pnum].SpdList[i]._itype == ITYPE_NONE) { done = TRUE; break; } } - } else { - done = FALSE; } } if (done && saveflag) {