Browse Source

Theme_MonstPit cleanup

pull/876/head^2
qndel 6 years ago committed by Anders Jenbo
parent
commit
7c2ee3333f
  1. 27
      Source/themes.cpp

27
Source/themes.cpp

@ -582,21 +582,18 @@ void Theme_MonstPit(int t)
r = random_(0, 100) + 1; r = random_(0, 100) + 1;
ixp = 0; ixp = 0;
iyp = 0; iyp = 0;
if (r > 0) { while (r > 0) {
while (TRUE) { if (dTransVal[ixp][iyp] == themes[t].ttval && !nSolidTable[dPiece[ixp][iyp]]) {
if (dTransVal[ixp][iyp] == themes[t].ttval && !nSolidTable[dPiece[ixp][iyp]]) { --r;
--r; }
} if (r <= 0)
if (r <= 0) { continue;
break; ixp++;
} if (ixp == MAXDUNX) {
ixp++; ixp = 0;
if (ixp == MAXDUNX) { iyp++;
ixp = 0; if (iyp == MAXDUNY) {
iyp++; iyp = 0;
if (iyp == MAXDUNY) {
iyp = 0;
}
} }
} }
} }

Loading…
Cancel
Save