Skip to content

Commit

Permalink
don't frame active PC when out-of-bounds in ranged anim
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Feb 10, 2025
1 parent 2a3d679 commit 4db6a11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game/boe.graphutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4db6a11

Please sign in to comment.