@ -77,7 +77,7 @@ GUI::GUI() : $game_map(GAME_MAP_X, GAME_MAP_Y),
void GUI::create_renderer() {
auto player = $world.get<Player>();
$map_view = Renderer([&, player] {
$map_view = Renderer([&] {
System::draw_map($world, $game_map, $canvas, VIEW_PORT_X, VIEW_PORT_Y);
return canvas($canvas);
});
@ -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;