X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fspecific-object%2Ftorch.cpp;h=7d0bd368981af44579e570cd8b28989ddcaa83cd;hb=b790502db5a8a6b26a7439fee5f4d06ec117659f;hp=348a3ae012c8ff00c8f713d3d553a5af78c2c8d4;hpb=542d048a353a175227a1458eef80d5ba62c274be;p=hengbandforosx%2Fhengbandosx.git diff --git a/src/specific-object/torch.cpp b/src/specific-object/torch.cpp index 348a3ae01..7d0bd3689 100644 --- a/src/specific-object/torch.cpp +++ b/src/specific-object/torch.cpp @@ -16,6 +16,7 @@ #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 @@ -163,9 +164,13 @@ void update_lite_radius(PlayerType *player_ptr) 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); } @@ -337,5 +342,5 @@ void update_lite(PlayerType *player_ptr) cave_redraw_later(floor_ptr, y, x); } - player_ptr->update |= PU_DELAY_VISIBILITY; + RedrawingFlagsUpdater::get_instance().set_flag(StatusRedrawingFlag::DELAY_VISIBILITY); }