[MapRotation]: Change command type to SV (#979)

This commit is contained in:
Edo 2023-04-26 22:14:30 +01:00 committed by GitHub
parent b34407449c
commit a60b06002b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,7 @@ namespace Components
void MapRotation::AddMapRotationCommands()
{
Command::Add("addMap", [](Command::Params* params)
Command::AddSV("addMap", [](Command::Params* params)
{
if (params->size() < 2)
{
@ -173,7 +173,7 @@ namespace Components
DedicatedRotation.addEntry("map", params->get(1));
});
Command::Add("addGametype", [](Command::Params* params)
Command::AddSV("addGametype", [](Command::Params* params)
{
if (params->size() < 2)
{
@ -397,7 +397,7 @@ namespace Components
MapRotation::MapRotation()
{
AddMapRotationCommands();
Events::OnSVInit(AddMapRotationCommands);
Utils::Hook::Set<void(*)()>(0x4152E8, SV_MapRotate_f);
DedicatedRotation.setHandler("map", ApplyMap);