Skip to content

Commit

Permalink
Removed Redundant Namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
davemoore22 committed Aug 20, 2024
1 parent 506f3b2 commit 9f7ff92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/engine/inspect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ auto Sorcery::Inspect::_handle_in_character(unsigned int character_id) -> std::o

std::optional<std::vector<MenuEntry>::const_iterator> item_action_selected{_item_action_menu->items.begin()};

// And do the main loop inside the character
// And do the main loop inside thCHARACTER_ROSTERe character
sf::Event event{};
while (_window->isOpen()) {
while (_window->pollEvent(event)) {
Expand Down Expand Up @@ -742,7 +742,7 @@ auto Sorcery::Inspect::stop() -> void {

auto Sorcery::Inspect::_draw() -> void {

using enum Sorcery::Enums::Menu::Mode;
using enum Enums::Menu::Mode;

if (!_in_character) {

Expand Down
12 changes: 6 additions & 6 deletions src/gui/automap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ auto Sorcery::AutoMap::refresh() -> void {
auto tcy{0};
auto player_pos{_game->state->get_player_pos()};
for (auto y = static_cast<int>(player_pos.y - _map_radius); y <= static_cast<int>(player_pos.y + _map_radius);
y++) {
y++) {
for (auto x = static_cast<int>(player_pos.x - _map_radius); x <= static_cast<int>(player_pos.x) + _map_radius;
x++) {
x++) {

auto lx{std::invoke([&] {
if (x < _game->state->level->wrap_bottom_left().x)
Expand Down Expand Up @@ -165,8 +165,8 @@ auto Sorcery::AutoMap::refresh() -> void {

auto Sorcery::AutoMap::_draw_player(MapDirection direction, int x, int y, float scaling) -> void {

using enum Sorcery::Enums::Automap::Feature;
using enum Sorcery::Enums::Map::Direction;
using enum Enums::Automap::Feature;
using enum Enums::Map::Direction;

auto icon{NO_FEATURE};
switch (direction) {
Expand Down Expand Up @@ -195,8 +195,8 @@ auto Sorcery::AutoMap::_draw_player(MapDirection direction, int x, int y, float
// TODO
auto Sorcery::AutoMap::_draw_tile(Tile &tile, Coordinate loc, int x, int y, float scaling) -> void {

using enum Sorcery::Enums::Graphics::TextureType;
using enum Sorcery::Enums::Map::Direction;
using enum Enums::Graphics::TextureType;
using enum Enums::Map::Direction;

sf::Sprite bg{_graphics->textures->get(unenum(AutoMapFeature::FLOOR), AUTOMAP).value()};
bg.setPosition(x, y);
Expand Down

0 comments on commit 9f7ff92

Please sign in to comment.