Fix wallification and wallify catacombs mine end

This commit is contained in:
Pasi Kallinen
2015-11-12 18:29:33 +02:00
parent 0bcb713b4f
commit 8451f67dff
2 changed files with 4 additions and 3 deletions

View File

@@ -1142,6 +1142,7 @@ DOOR:closed,(73,5)
DOOR:closed,(2,15)
MAZEWALK:(36,8),west
STAIR:(42,8),up
WALLIFY
# Objects
OBJECT:('*',"diamond"),random

View File

@@ -4736,9 +4736,9 @@ struct sp_coder *coder;
dy1 = (xchar) SP_REGION_Y1(OV_i(r));
dx2 = (xchar) SP_REGION_X2(OV_i(r));
dy2 = (xchar) SP_REGION_Y2(OV_i(r));
wallify_map(dx1 < 0 ? xstart : dx1, dy1 < 0 ? ystart : dy1,
dx2 < 0 ? xstart + xsize : dx2,
dy2 < 0 ? ystart + ysize : dy2);
wallify_map(dx1 < 0 ? (xstart-1) : dx1, dy1 < 0 ? (ystart-1) : dy1,
dx2 < 0 ? (xstart + xsize + 1) : dx2,
dy2 < 0 ? (ystart + ysize + 1) : dy2);
break;
case 1:
if (!OV_pop_typ(r, SPOVAR_SEL))