don't recenter target screen on enemies party can't see

This commit is contained in:
2025-03-16 17:50:46 -05:00
parent 2e8d3ce1f2
commit 8adcfed051

View File

@@ -1048,7 +1048,7 @@ void handle_target_mode(eGameMode target_mode, int range) {
std::vector<location> enemy_locs_in_range;
for(short i = 0; i < univ.town.monst.size(); i++){
auto& monst = univ.town.monst[i];
if(monst.is_alive()) {
if(monst.is_alive() && party_can_see_monst(i)) {
eAttitude att = monst.attitude;
if((att == eAttitude::HOSTILE_A || att == eAttitude::HOSTILE_B)
&& dist(loc, monst.cur_loc) <= range){