Add Alchemy's /sethome command
This commit is contained in:
@@ -255,6 +255,7 @@ bool cmd_line_chat(std::string data, EChatType type)
|
||||
static LLCachedControl<std::string> sPosCommand(gSavedSettings, "AscentCmdLinePos");
|
||||
static LLCachedControl<std::string> sRezPlatCommand(gSavedSettings, "AscentCmdLineRezPlatform");
|
||||
static LLCachedControl<std::string> sHomeCommand(gSavedSettings, "AscentCmdLineTeleportHome");
|
||||
static LLCachedControl<std::string> sSetHomeCommand(gSavedSettings, "AlchemyChatCommandSetHome", "/sethome");
|
||||
static LLCachedControl<std::string> sCalcCommand(gSavedSettings, "AscentCmdLineCalc");
|
||||
static LLCachedControl<std::string> sMapToCommand(gSavedSettings, "AscentCmdLineMapTo");
|
||||
static LLCachedControl<std::string> sClearCommand(gSavedSettings, "AscentCmdLineClearChat");
|
||||
@@ -365,6 +366,11 @@ bool cmd_line_chat(std::string data, EChatType type)
|
||||
gAgent.teleportHome();
|
||||
return false;
|
||||
}
|
||||
else if (cmd == utf8str_tolower(sSetHomeCommand)) // sethome
|
||||
{
|
||||
gAgent.setStartPosition(START_LOCATION_ID_HOME);
|
||||
return false;
|
||||
}
|
||||
else if (cmd == utf8str_tolower(sCalcCommand))//Cryogenic Blitz
|
||||
{
|
||||
if (data.length() > cmd.length() + 1)
|
||||
|
||||
Reference in New Issue
Block a user