Skip to content

Commit

Permalink
Another huge chunk of progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jul 9, 2017
1 parent 454876c commit d1e8dc5
Show file tree
Hide file tree
Showing 13 changed files with 1,133 additions and 1,147 deletions.
9 changes: 6 additions & 3 deletions src/arrow.cpp
Expand Up @@ -136,12 +136,15 @@ bool arrow::path_contains(map_location const& hex) const
return contains;
}

void arrow::draw_hex(map_location const& hex)
void arrow::draw_hex(const map_location& hex)
{
if(path_contains(hex))
{
SCREEN->render_image(SCREEN->get_location_x(hex), SCREEN->get_location_y(hex), layer_,
hex, image::get_image(symbols_map_[hex], image::SCALED_TO_ZOOM));
SCREEN->render_scaled_to_zoom(
image::get_texture(symbols_map_[hex] /*, image::SCALED_TO_ZOOM*/),
SCREEN->get_location_x(hex),
SCREEN->get_location_y(hex)
);
}
}

Expand Down

0 comments on commit d1e8dc5

Please sign in to comment.