Remove some unused variables.

main
Zed A. Shaw 1 month ago
parent 8b61a4fad8
commit fe5f7673ea
  1. 2
      gui.cpp
  2. 1
      gui.hpp

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

@ -38,7 +38,6 @@ class GUI {
Map $game_map; Map $game_map;
sf::SoundBuffer $hit_buf; sf::SoundBuffer $hit_buf;
sf::Sound $hit_sound; sf::Sound $hit_sound;
bool $show_paths = false;
string $status_text = "NOT DEAD"; string $status_text = "NOT DEAD";
Component $document; Component $document;
Component $map_view; Component $map_view;

Loading…
Cancel
Save