Rename `warpto` command to simply `warp` to match command line argument

This commit is contained in:
Phillip Stephens 2019-02-06 17:55:28 -08:00
parent 6ead37804b
commit 825acbaa0d
2 changed files with 4 additions and 4 deletions

View File

@ -496,7 +496,7 @@ void CMain::ListWorlds(hecl::Console* con, const std::vector<std::string>&) {
} }
} }
void CMain::WarpTo(hecl::Console* con, const std::vector<std::string>& args) { void CMain::Warp(hecl::Console* con, const std::vector<std::string>& args) {
if (!g_StateManager) if (!g_StateManager)
return; return;
@ -659,8 +659,8 @@ void CMain::Init(const hecl::Runtime::FileStoreManager& storeMgr, hecl::CVarMana
m_console->registerCommand("ListWorlds"sv, "Lists loaded worlds"sv, ""sv, m_console->registerCommand("ListWorlds"sv, "Lists loaded worlds"sv, ""sv,
std::bind(&CMain::ListWorlds, this, std::placeholders::_1, std::placeholders::_2), std::bind(&CMain::ListWorlds, this, std::placeholders::_1, std::placeholders::_2),
hecl::SConsoleCommand::ECommandFlags::Normal); hecl::SConsoleCommand::ECommandFlags::Normal);
m_console->registerCommand("WarpTo"sv, "Warps to a given area and world"sv, "[worldname] areaId"sv, m_console->registerCommand("Warp"sv, "Warps to a given area and world"sv, "[worldname] areaId"sv,
std::bind(&CMain::WarpTo, this, std::placeholders::_1, std::placeholders::_2), std::bind(&CMain::Warp, this, std::placeholders::_1, std::placeholders::_2),
hecl::SConsoleCommand::ECommandFlags::Normal); hecl::SConsoleCommand::ECommandFlags::Normal);
InitializeSubsystems(); InitializeSubsystems();

View File

@ -307,7 +307,7 @@ public:
void God(hecl::Console*, const std::vector<std::string>&); void God(hecl::Console*, const std::vector<std::string>&);
void Teleport(hecl::Console*, const std::vector<std::string>&); void Teleport(hecl::Console*, const std::vector<std::string>&);
void ListWorlds(hecl::Console*, const std::vector<std::string>&); void ListWorlds(hecl::Console*, const std::vector<std::string>&);
void WarpTo(hecl::Console*, const std::vector<std::string>&); void Warp(hecl::Console*, const std::vector<std::string>&);
hecl::Console* Console() const { return m_console.get(); } hecl::Console* Console() const { return m_console.get(); }
int m_warpWorldIdx = -1; int m_warpWorldIdx = -1;