room
for (p = nightobjs; p->room != 0; p++)
setbit(nightfile[p->room].objects, p->obj);
for (p = nightobjs; p->room != 0; p++)
clearbit(dayfile[p->room].objects, p->obj);
struct room dayfile[] = {
extern struct room dayfile[];
extern struct room nightfile[];
extern struct room *location;
short room;
void whichway(struct room);
struct room *location;
for (p = dayobjs; p->room != 0; p++)
setbit(location[p->room].objects, p->obj);
struct room nightfile[] = {
whichway(struct room here)
struct rm *room;
if ((room = &levl[x][y])->new) {
room->new = 0;
at(x, y, room->scrsym);
} else if (room->seen)
at(x, y, room->scrsym);
struct rm *room;
if ((room = &levl[x][y])->new) {
room->new = 0;
at(x, y, room->scrsym);
} else if (room->seen)
at(x, y, room->scrsym);
struct rm *room;
room = &levl[x][y];
if ((!room->typ) ||
(IS_ROCK(room->typ) && levl[u.ux][u.uy].typ == CORR))
} else if ((otmp = o_at(x, y)) && room->typ != POOL)
} else if (g_at(x, y) && room->typ != POOL)
else if (!room->seen || room->scrsym == ' ') {
room->new = room->seen = 1;
room->seen = 1;
struct rm *room;
room = &levl[x][y];
if (!room->seen)
else if (room->typ == POOL)
switch (room->typ) {
tmp = room->scrsym; /* %% wrong after killing
if (room->lit || cansee(x, y) || Blind)
struct rm *room;
room = &levl[x][y];
if (room->scrsym != newscrsym) {
room->scrsym = newscrsym;
room->seen = 0;
struct rm *room;
room = &levl[x][y];
if (room->scrsym == '.' && !room->lit && !Blind) {
room->scrsym = ' ';
room->new = 1;
struct rm *room;
if ((room = &levl[x][y])->new) {
room->new = 0;
at(x, y, room->scrsym);
struct rm *room;
room = &levl[zx][zy];
if (room->typ == HWALL ||
room->typ == VWALL) {
room->typ = ROOM;
} else if (room->typ == HWALL || room->typ == VWALL ||
room->typ == SDOOR || room->typ == LDOOR) {
room->typ = DOOR;
} else if (room->typ == SCORR || !room->typ) {
room->typ = CORR;
put_door(room *rm, short dir, short *row, short *col)
static void put_door(room *, short, short *, short *);
extern room rooms[];
room rooms[MAXROOMS];
rw ? r_write(fp, (rooms + i), sizeof(room)) :
r_read(fp, (rooms + i), sizeof(room));
FP_SCR1 equ LV+76 ;room for a temporary float value
FP_SCR2 equ LV+92 ;room for a temporary float value
L_SCR1 equ LV+108 ;room for a temporary long value
L_SCR2 equ LV+112 ;room for a temporary long value
L_SCR3 equ LV+124 ;room for a temporary long value
FP_SCR3 equ LV+128 ;room for a temporary float value
FP_SCR4 equ LV+144 ;room for a temporary float value
FP_SCR5 equ LV+160 ;room for a temporary float value
FP_SCR1 equ LV+76 ;room for a temporary float value
FP_SCR2 equ LV+92 ;room for a temporary float value
L_SCR1 equ LV+108 ;room for a temporary long value
L_SCR2 equ LV+112 ;room for a temporary long value
L_SCR3 equ LV+124 ;room for a temporary long value
FP_SCR3 equ LV+128 ;room for a temporary float value
FP_SCR4 equ LV+144 ;room for a temporary float value
FP_SCR5 equ LV+160 ;room for a temporary float value