… | |
… | |
96 | * this was introduced to make shops safer |
96 | * this was introduced to make shops safer |
97 | * but is useful in other situations */ |
97 | * but is useful in other situations */ |
98 | #define P_IS_ALIVE 0x10 /* something alive is on this space */ |
98 | #define P_IS_ALIVE 0x10 /* something alive is on this space */ |
99 | #define P_NO_CLERIC 0x20 /* no clerical spells cast here */ |
99 | #define P_NO_CLERIC 0x20 /* no clerical spells cast here */ |
100 | |
100 | |
101 | #define P_NEED_UPDATE 0x80 /* this space is out of date */ |
101 | #define P_UPTODATE 0x80 /* this space is up to date */ |
102 | |
102 | |
103 | /* The following two values are not stored in the MapLook flags, but instead |
103 | /* The following two values are not stored in the MapLook flags, but instead |
104 | * used in the get_map_flags value - that function is used to return |
104 | * used in the get_map_flags value - that function is used to return |
105 | * the flag value, as well as other conditions - using a more general |
105 | * the flag value, as well as other conditions - using a more general |
106 | * function that does more of the work can hopefully be used to replace |
106 | * function that does more of the work can hopefully be used to replace |
… | |
… | |
134 | MoveType move_off; /* What movement types are activated */ |
134 | MoveType move_off; /* What movement types are activated */ |
135 | |
135 | |
136 | void update_ (); |
136 | void update_ (); |
137 | void update () |
137 | void update () |
138 | { |
138 | { |
139 | if (flags_ & P_NEED_UPDATE) |
139 | if (!(flags_ & P_UPTODATE)) |
140 | update_ (); |
140 | update_ (); |
141 | } |
141 | } |
142 | |
142 | |
143 | uint8 flags () |
143 | uint8 flags () |
144 | { |
144 | { |