diff --git a/include/sp_lev.h b/include/sp_lev.h index cf86388e3..ed3e20381 100644 --- a/include/sp_lev.h +++ b/include/sp_lev.h @@ -196,7 +196,8 @@ struct mapfragment { #define SET_TYPLIT(x, y, ttyp, llit) \ { \ if ((x) >= 1 && (y) >= 0 && (x) < COLNO && (y) < ROWNO) { \ - if ((ttyp) < MAX_TYPE) \ + if ((ttyp) < MAX_TYPE && levl[(x)][(y)].typ != STAIRS \ + && levl[(x)][(y)].typ != LADDER) \ levl[(x)][(y)].typ = (ttyp); \ if ((ttyp) == LAVAPOOL) \ levl[(x)][(y)].lit = 1; \