[MapRotation]: Change command type to SV (#979)
This commit is contained in:
parent
b34407449c
commit
a60b06002b
@ -162,7 +162,7 @@ namespace Components
|
|||||||
|
|
||||||
void MapRotation::AddMapRotationCommands()
|
void MapRotation::AddMapRotationCommands()
|
||||||
{
|
{
|
||||||
Command::Add("addMap", [](Command::Params* params)
|
Command::AddSV("addMap", [](Command::Params* params)
|
||||||
{
|
{
|
||||||
if (params->size() < 2)
|
if (params->size() < 2)
|
||||||
{
|
{
|
||||||
@ -173,7 +173,7 @@ namespace Components
|
|||||||
DedicatedRotation.addEntry("map", params->get(1));
|
DedicatedRotation.addEntry("map", params->get(1));
|
||||||
});
|
});
|
||||||
|
|
||||||
Command::Add("addGametype", [](Command::Params* params)
|
Command::AddSV("addGametype", [](Command::Params* params)
|
||||||
{
|
{
|
||||||
if (params->size() < 2)
|
if (params->size() < 2)
|
||||||
{
|
{
|
||||||
@ -397,7 +397,7 @@ namespace Components
|
|||||||
|
|
||||||
MapRotation::MapRotation()
|
MapRotation::MapRotation()
|
||||||
{
|
{
|
||||||
AddMapRotationCommands();
|
Events::OnSVInit(AddMapRotationCommands);
|
||||||
Utils::Hook::Set<void(*)()>(0x4152E8, SV_MapRotate_f);
|
Utils::Hook::Set<void(*)()>(0x4152E8, SV_MapRotate_f);
|
||||||
|
|
||||||
DedicatedRotation.setHandler("map", ApplyMap);
|
DedicatedRotation.setHandler("map", ApplyMap);
|
||||||
|
Loading…
Reference in New Issue
Block a user