♻️Performe static casts when load save game data
This commit is contained in:
parent
61d15e23db
commit
946ff5b0fa
7 changed files with 59 additions and 59 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue