Draw monsters doing ranged attacks in peace mode

This commit is contained in:
2025-03-08 11:20:51 -06:00
committed by Celtic Minstrel
parent e3e93a43bf
commit a4d202eb97

View File

@@ -529,7 +529,7 @@ short party_can_see(location where) {
if(fog_lifted) if(fog_lifted)
return point_onscreen(univ.party.town_loc,where) ? 1 : 6; return point_onscreen(univ.party.town_loc,where) ? 1 : 6;
if(is_town()) { if(is_town()) {
if( ((point_onscreen(univ.party.town_loc,where)) || (overall_mode == MODE_LOOK_TOWN)) && (pt_in_light(univ.party.town_loc,where) ) if( ((point_onscreen(univ.party.town_loc,where)) || (center != univ.party.town_loc)) && (pt_in_light(univ.party.town_loc,where) )
&& (can_see_light(univ.party.town_loc,where,sight_obscurity) < 5)) && (can_see_light(univ.party.town_loc,where,sight_obscurity) < 5))
return 1; return 1;
else return 6; else return 6;