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

@@ -420,7 +420,7 @@ E void NDECL(save_currentstate);
E void FDECL(u_collide_m, (struct monst *));
E void FDECL(goto_level, (d_level *, BOOLEAN_P, BOOLEAN_P, BOOLEAN_P));
E void NDECL(maybe_lvltport_feedback);
E void FDECL(schedule_goto, (d_level *, BOOLEAN_P, BOOLEAN_P, int,
E void FDECL(schedule_goto, (d_level *, int,
const char *, const char *));
E void NDECL(deferred_goto);
E boolean FDECL(revive_corpse, (struct obj *));

View File

@@ -334,6 +334,15 @@ enum utraptypes {
TT_BURIEDBALL = 5
};
enum utotypes {
UTOTYPE_NONE = 0x00,
UTOTYPE_ATSTAIRS = 0x01,
UTOTYPE_FALLING = 0x02,
UTOTYPE_PORTAL = 0x04,
UTOTYPE_RMPORTAL = 0x10, /* remove portal */
UTOTYPE_DEFERRED = 0x20, /* deferred_goto */
};
/*** Information about the player ***/
struct you {
xchar ux, uy; /* current map coordinates */