Clouds cannot have engravings in them

... so delete the existing engraving if a cloud is put on the map.
This commit is contained in:
Pasi Kallinen
2023-11-09 18:07:56 +02:00
parent e783c82b84
commit 2e8adda028
3 changed files with 4 additions and 0 deletions

View File

@@ -5255,6 +5255,8 @@ sel_set_ter(coordxy x, coordxy y, genericptr_t arg)
levl[x][y].horizontal = 1;
} else if (splev_init_present && levl[x][y].typ == ICE) {
levl[x][y].icedpool = icedpools ? ICED_POOL : ICED_MOAT;
} else if (levl[x][y].typ == CLOUD) {
del_engr_at(x, y); /* clouds cannot have engravings */
}
}