Browse Source

AutoPlace bin exact.

pull/876/head
Sergey Semushin 7 years ago committed by Anders Jenbo
parent
commit
d7ba6d8962
  1. 6
      Source/inv.cpp

6
Source/inv.cpp

@ -690,10 +690,10 @@ BOOL AutoPlace(int pnum, int ii, int sx, int sy, BOOL saveflag)
xx = 0;
}
for (i = 0; i < sx && done; i++) {
if (xx < 10) {
done = plr[pnum].InvGrid[xx + yy] == 0;
} else {
if (xx >= 10) {
done = FALSE;
} else {
done = plr[pnum].InvGrid[xx + yy] == 0;
}
xx++;
}

Loading…
Cancel
Save