Fixed the map so that it shows directional arrows instead of a compass.

This commit is contained in:
Zed A. Shaw 2025-04-06 23:29:25 -04:00
parent c7c48658bd
commit e6a8a8b338
11 changed files with 35 additions and 27 deletions

View file

@ -31,8 +31,8 @@ namespace gui {
$map_grid.init(cell, $font);
}
void MiniMapUI::render(sf::RenderWindow &window, Point aim) {
std::wstring map_out = System::draw_map($level, 5, 3, aim);
void MiniMapUI::render(sf::RenderWindow &window, int compass_dir) {
std::wstring map_out = System::draw_map($level, 5, 3, compass_dir);
$map_grid.update(map_out);
window.draw(*$map_grid.text);
}