Fix door orientation in des-files
Doors in des-files were always generated vertically. This wasn't visible unless you had separate symbols for closed vertical and horizontal doors, or used tiles.
This commit is contained in:
@@ -4191,6 +4191,13 @@ genericptr_t arg;
|
||||
if (typ < D_CLOSED)
|
||||
typ = D_CLOSED;
|
||||
}
|
||||
|
||||
if (((isok(x-1,y) && IS_DOORJOIN(levl[x-1][y].typ)) || !isok(x-1,y))
|
||||
|| (isok(x+1,y) && IS_DOORJOIN(levl[x+1][y].typ)) || !isok(x+1,y))
|
||||
levl[x][y].horizontal = 1;
|
||||
else
|
||||
levl[x][y].horizontal = 0;
|
||||
|
||||
levl[x][y].doormask = typ;
|
||||
SpLev_Map[x][y] = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user