Skip to content

Commit 3f0636e

Browse files
committed
Removed GetLastMap no longer needed for VScript
1 parent 0348de4 commit 3f0636e

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ void InitializeEntity(HSCRIPT ent); | "Initia
2626
void SendToChat(const char* msg, int playerIndex); | "Sends a raw message to the chat HUD. Specifying no playerIndex or 0 sends to all players. Supports printing localization strings but those that require formatting can't be formatted."
2727
const char* GetGameMainDir(); | "Returns the current game directory. Ex. portal2"
2828
const char* GetGameRootDir(); | "Returns the current root game directory. Ex. Portal 2"
29-
const char* GetLastMap(); | "Returns the last map recorded by the Last Map system."
3029
void CallFirstRunPrompt(); | "Shows the first run prompt if enabled in config.nut."
3130
int GetConVarInt(const char* cvName); | "Get the integer value of a ConVar."
3231
const char* GetConVarString(const char* cvName); | "Get the string value of a ConVar."

vscript.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,6 @@ static void SendToChat(const int playerIndex, const char* msg)
118118
UTIL_ClientPrint(pPlayer, HUD_PRINTTALK, msg);
119119
}
120120

121-
//---------------------------------------------------------------------------------
122-
// Purpose: Returns the last map recorded by the launcher's Last Map System.
123-
//---------------------------------------------------------------------------------
124-
static const char* GetLastMap()
125-
{
126-
return p2mm_lastmap.GetString();
127-
}
128-
129121
//---------------------------------------------------------------------------------
130122
// Purpose: Shows the first run prompt if enabled in config.nut.
131123
//---------------------------------------------------------------------------------
@@ -318,7 +310,6 @@ void RegisterFuncsAndRun()
318310
ScriptRegisterFunction (g_pScriptVM, SendToChat, "Sends a raw message to the chat HUD. Specifying no playerIndex or 0 sends to all players. Supports printing localization strings but those that require formatting can't be formatted.");
319311
ScriptRegisterFunction (g_pScriptVM, GetGameMainDir, "Returns the current game directory. Ex. portal2");
320312
ScriptRegisterFunction (g_pScriptVM, GetGameRootDir, "Returns the current root game directory. Ex. Portal 2");
321-
ScriptRegisterFunction (g_pScriptVM, GetLastMap, "Returns the last map recorded by the Last Map system.");
322313
ScriptRegisterFunction (g_pScriptVM, CallFirstRunPrompt, "Shows the first run prompt if enabled in config.nut.");
323314
ScriptRegisterFunctionNamed(g_pScriptVM, GetConVarInt, "GetConVarInt", "Get the integer value of a ConVar.");
324315
ScriptRegisterFunctionNamed(g_pScriptVM, GetConVarString, "GetConVarString", "Get the string value of a ConVar.");

0 commit comments

Comments
 (0)