Skip to content

Commit

Permalink
Always draw cursor on TILES
Browse files Browse the repository at this point in the history
  • Loading branch information
olanti-p authored and Coolthulhu committed Oct 29, 2020
1 parent 8ebde54 commit a3eab11
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ranged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1680,8 +1680,13 @@ std::vector<tripoint> target_handler::target_ui( player &pc, target_mode mode,
int available_lines = compact ? 1 : ( height - num_instruction_lines - line_number - 12 );
line_number = critter->print_info( w_target, line_number, available_lines, 1 );
} else {
mvwputch( g->w_terrain, -center.xy() + dst.xy() + point( POSX, POSY ),
c_red, '*' );
if( use_tiles ) {
if( dst.z == center.z ) {
g->draw_cursor( dst );
}
} else {
mvwputch( g->w_terrain, -center.xy() + dst.xy() + point( POSX, POSY ), c_red, '*' );
}
}

// Assumes that relevant == null means firing turrets (maybe even multiple at once),
Expand Down

0 comments on commit a3eab11

Please sign in to comment.