#include "system/angband.h"
/*
- * Feature action flags
+ * Terrain action flags
*/
#define FAF_DESTROY 0x01
#define FAF_NO_DROP 0x02
#define FAF_CRASH_GLASS 0x04
-extern const byte feature_action_flags[FF_FLAG_MAX];
+extern const byte terrain_action_flags[FF_FLAG_MAX];
return feat;
}
- return (feature_action_flags[enum2i(action)] & FAF_DESTROY) ? conv_dungeon_feat(floor_ptr, f_ptr->destroyed) : feat;
+ return (terrain_action_flags[enum2i(action)] & FAF_DESTROY) ? conv_dungeon_feat(floor_ptr, f_ptr->destroyed) : feat;
}
/*
/* Set the new feature */
cave_set_feat(player_ptr, y, x, newfeat);
- if (!(feature_action_flags[enum2i(action)] & FAF_NO_DROP)) {
+ if (!(terrain_action_flags[enum2i(action)] & FAF_NO_DROP)) {
terrain_type *old_f_ptr = &terrains_info[oldfeat];
auto *f_ptr = &terrains_info[newfeat];
bool found = false;
}
}
- if (feature_action_flags[enum2i(action)] & FAF_CRASH_GLASS) {
+ if (terrain_action_flags[enum2i(action)] & FAF_CRASH_GLASS) {
terrain_type *old_f_ptr = &terrains_info[oldfeat];
if (old_f_ptr->flags.has(FloorFeatureType::GLASS) && w_ptr->character_dungeon) {