don't frame active PC when out-of-bounds in ranged anim

This commit is contained in:
2025-02-10 14:34:16 -06:00
parent ab0eada20d
commit fa1d9a7442

View File

@@ -251,6 +251,7 @@ void draw_combat_pc(cPlayer& who, location center, bool attacking) {
void frame_active_pc(location center) {
if(monsters_going) return;
if(!is_on_screen(univ.current_pc().combat_pos)) return;
location where_draw(univ.current_pc().combat_pos.x - center.x + 4, univ.current_pc().combat_pos.y - center.y + 4);
rectangle active_pc_rect;
active_pc_rect.top = 18 + where_draw.y * 36;