mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
Merge pull request #570 from diamante0018/develop
This commit is contained in:
commit
b02e408f93
@ -87,6 +87,12 @@ namespace map_rotation
|
|||||||
|
|
||||||
++i;
|
++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)
|
void load_rotation(const std::string& data)
|
||||||
@ -266,7 +272,7 @@ namespace map_rotation
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw parse_rotation_error();
|
throw map_rotation_parse_error();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
namespace map_rotation
|
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
|
class rotation_data
|
||||||
|
Loading…
Reference in New Issue
Block a user