Debug flag allowing overwriting stairs

And using it in the movement tests, so running doesn't stop
at stairs.
This commit is contained in:
Pasi Kallinen
2021-07-30 16:35:33 +03:00
parent 5580cd6286
commit b080ea12c2
5 changed files with 20 additions and 5 deletions

View File

@@ -2338,7 +2338,7 @@ create_altar(altar* a, struct mkroom* croom)
/* check for existing features */
oldtyp = levl[x][y].typ;
if (oldtyp == STAIRS || oldtyp == LADDER)
if (!CAN_OVERWRITE_TERRAIN(oldtyp))
return;
amask = sp_amask_to_amask(a->sp_amask);