#include "system/grid-type-definition.h"
#include "system/item-entity.h"
#include "system/player-type-definition.h"
+#include "system/redrawing-flags-updater.h"
#include "util/bit-flags-calculator.h"
#include "util/point-2d.h"
#include <vector>
return;
}
- player_ptr->update |= PU_LITE | PU_MONSTER_LITE | PU_MONSTER_STATUSES;
+ const auto flags = {
+ StatusRedrawingFlag::LITE,
+ StatusRedrawingFlag::MONSTER_LITE,
+ StatusRedrawingFlag::MONSTER_STATUSES,
+ };
+ RedrawingFlagsUpdater::get_instance().set_flags(flags);
player_ptr->old_lite = player_ptr->cur_lite;
-
if (player_ptr->cur_lite > 0) {
set_superstealth(player_ptr, false);
}
cave_redraw_later(floor_ptr, y, x);
}
- player_ptr->update |= PU_DELAY_VISIBILITY;
+ RedrawingFlagsUpdater::get_instance().set_flag(StatusRedrawingFlag::DELAY_VISIBILITY);
}