Use enums instead of magic values
This commit is contained in:
@@ -182,13 +182,13 @@ boolean seal;
|
||||
branch *br;
|
||||
d_level *dest;
|
||||
struct trap *t;
|
||||
int portal_flag;
|
||||
int portal_flag = u.uevent.qexpelled ? UTOTYPE_NONE : UTOTYPE_PORTAL;
|
||||
|
||||
br = dungeon_branch("The Quest");
|
||||
dest = (br->end1.dnum == u.uz.dnum) ? &br->end2 : &br->end1;
|
||||
portal_flag = u.uevent.qexpelled ? 0 /* returned via artifact? */
|
||||
: !seal ? 1 : -1;
|
||||
schedule_goto(dest, FALSE, FALSE, portal_flag, (char *) 0, (char *) 0);
|
||||
if (seal)
|
||||
portal_flag |= UTOTYPE_RMPORTAL;
|
||||
schedule_goto(dest, portal_flag, (char *) 0, (char *) 0);
|
||||
if (seal) { /* remove the portal to the quest - sealing it off */
|
||||
int reexpelled = u.uevent.qexpelled;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user