Use enums instead of magic values

This commit is contained in:
Pasi Kallinen
2020-11-15 19:31:22 +02:00
parent 560d324a2f
commit d6384f4061
7 changed files with 29 additions and 29 deletions

View File

@@ -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;