From 825acbaa0d861add6263eb8742b80f613e19d0ab Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 6 Feb 2019 17:55:28 -0800 Subject: [PATCH] Rename `warpto` command to simply `warp` to match command line argument --- Runtime/MP1/MP1.cpp | 6 +++--- Runtime/MP1/MP1.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Runtime/MP1/MP1.cpp b/Runtime/MP1/MP1.cpp index c996e3a60..18e3af7e9 100644 --- a/Runtime/MP1/MP1.cpp +++ b/Runtime/MP1/MP1.cpp @@ -496,7 +496,7 @@ void CMain::ListWorlds(hecl::Console* con, const std::vector&) { } } -void CMain::WarpTo(hecl::Console* con, const std::vector& args) { +void CMain::Warp(hecl::Console* con, const std::vector& args) { if (!g_StateManager) 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, std::bind(&CMain::ListWorlds, this, std::placeholders::_1, std::placeholders::_2), hecl::SConsoleCommand::ECommandFlags::Normal); - m_console->registerCommand("WarpTo"sv, "Warps to a given area and world"sv, "[worldname] areaId"sv, - std::bind(&CMain::WarpTo, this, std::placeholders::_1, std::placeholders::_2), + m_console->registerCommand("Warp"sv, "Warps to a given area and world"sv, "[worldname] areaId"sv, + std::bind(&CMain::Warp, this, std::placeholders::_1, std::placeholders::_2), hecl::SConsoleCommand::ECommandFlags::Normal); InitializeSubsystems(); diff --git a/Runtime/MP1/MP1.hpp b/Runtime/MP1/MP1.hpp index 1cb1dc14d..b7e094d4c 100644 --- a/Runtime/MP1/MP1.hpp +++ b/Runtime/MP1/MP1.hpp @@ -307,7 +307,7 @@ public: void God(hecl::Console*, const std::vector&); void Teleport(hecl::Console*, const std::vector&); void ListWorlds(hecl::Console*, const std::vector&); - void WarpTo(hecl::Console*, const std::vector&); + void Warp(hecl::Console*, const std::vector&); hecl::Console* Console() const { return m_console.get(); } int m_warpWorldIdx = -1;