[MapRotation]: Exec only from this folder (#917)

This commit is contained in:
Edo 2023-04-09 18:39:32 +02:00 committed by GitHub
parent 9b1f49252e
commit 33ebf76a8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ namespace Components
if (!this->containsHandler(key))
{
throw MapRotationParseError(std::format("Invalid key {}", key));
throw MapRotationParseError(std::format("Invalid key '{}'", key));
}
this->addEntry(key, value);
@ -237,7 +237,6 @@ namespace Components
void MapRotation::ApplyExec(const std::string& name)
{
assert(!name.empty());
Command::Execute(std::format("exec {}", name), false);
Command::Execute(std::format("exec game_settings/{}", name), false);
}