Rework stairs structure
Use a linked list to store stair and ladder information, instead of having fixed up/down stairs/ladders and a single "special" (branch) stair. Breaks saves and bones. Adds information to migrating objects and monsters for the dungeon and level where they are migrating from.
This commit is contained in:
@@ -34,7 +34,9 @@ typedef struct s_level { /* special dungeon level element */
|
||||
typedef struct stairway { /* basic stairway identifier */
|
||||
xchar sx, sy; /* x / y location of the stair */
|
||||
d_level tolev; /* where does it go */
|
||||
char up; /* what type of stairway (up/down) */
|
||||
boolean up; /* up or down? */
|
||||
boolean isladder; /* ladder or stairway? */
|
||||
struct stairway *next;
|
||||
} stairway;
|
||||
|
||||
/* level region types */
|
||||
|
||||
Reference in New Issue
Block a user