♻️Performe static casts when load save game data

This commit is contained in:
Anders Jenbo 2021-04-18 05:26:35 +02:00
commit 946ff5b0fa
7 changed files with 59 additions and 59 deletions

View file

@ -517,7 +517,7 @@ void PlaceThemeMonsts(int t, int f)
for (xp = 0; xp < MAXDUNX; xp++) {
if (dTransVal[xp][yp] == themes[t].ttval && !nSolidTable[dPiece[xp][yp]] && dItem[xp][yp] == 0 && dObject[xp][yp] == 0) {
if (random_(0, f) == 0) {
AddMonster(xp, yp, (direction)random_(0, 8), mtype, true);
AddMonster(xp, yp, static_cast<direction>(random_(0, 8)), mtype, true);
}
}
}