diff --git a/gui.cpp b/gui.cpp index 1d008f8..fba98a0 100644 --- a/gui.cpp +++ b/gui.cpp @@ -77,7 +77,7 @@ GUI::GUI() : $game_map(GAME_MAP_X, GAME_MAP_Y), void GUI::create_renderer() { auto player = $world.get(); - $map_view = Renderer([&, player] { + $map_view = Renderer([&] { System::draw_map($world, $game_map, $canvas, VIEW_PORT_X, VIEW_PORT_Y); return canvas($canvas); }); diff --git a/gui.hpp b/gui.hpp index fdfee0a..d7926c3 100644 --- a/gui.hpp +++ b/gui.hpp @@ -38,7 +38,6 @@ class GUI { Map $game_map; sf::SoundBuffer $hit_buf; sf::Sound $hit_sound; - bool $show_paths = false; string $status_text = "NOT DEAD"; Component $document; Component $map_view;