Merge pull request #570 from diamante0018/develop

This commit is contained in:
Edo 2023-01-09 23:12:44 +00:00 committed by GitHub
commit b02e408f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -87,6 +87,12 @@ namespace map_rotation
++i;
}
if (i == rotation.get_entries_size())
{
console::error("Map rotation does not contain any map. Restarting\n");
launch_default_map();
}
}
void load_rotation(const std::string& data)
@ -266,7 +272,7 @@ namespace map_rotation
}
else
{
throw parse_rotation_error();
throw map_rotation_parse_error();
}
}
}

View File

@ -2,9 +2,9 @@
namespace map_rotation
{
struct parse_rotation_error : public std::exception
struct map_rotation_parse_error : public std::exception
{
const char* what() const noexcept override { return "Parse Rotation Error"; }
[[nodiscard]] const char* what() const noexcept override { return "Map Rotation Parse Erro"; }
};
class rotation_data