From 2785cd2573ef785237e7a8f99be13ed950a1c77f Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Mon, 29 Aug 2016 19:13:07 -0400 Subject: [PATCH] Update for StartChangeLevel prototype change. --- core/metamod.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/metamod.cpp b/core/metamod.cpp index c93196c..5b0d6b1 100644 --- a/core/metamod.cpp +++ b/core/metamod.cpp @@ -57,7 +57,7 @@ class GameSessionConfiguration_t { }; SH_DECL_MANUALHOOK4_void(SGD_StartupServer, 0, 0, 0, const GameSessionConfiguration_t &, INetworkGameServerFactory *, ISource2WorldSession *, const char *); SH_DECL_MANUALHOOK2_void(SGD_Init, 0, 0, 0, GameSessionConfiguration_t *, const char *); -SH_DECL_MANUALHOOK0(SGD_StartChangeLevel, 0, 0, 0, CUtlVector *); +SH_DECL_MANUALHOOK1(SGD_StartChangeLevel, 0, 0, 0, CUtlVector *, int); SH_DECL_MANUALHOOK5_void(SGD_SwitchToLoop, 0, 0, 0, const char *, KeyValues *, uint32, const char *, bool); SH_DECL_MANUALHOOK3(SGD_AllocateServer, 0, 0, 0, INetworkGameServer *, int, INetworkServerService *, ISource2WorldSession *); @@ -77,7 +77,7 @@ static void Handler_Init(GameSessionConfiguration_t *, const char *); static CUtlVector * -Handler_StartChangeLevel(); +Handler_StartChangeLevel(int unknown); #else SH_DECL_MANUALHOOK0(SGD_GameInit, 0, 0, 0, bool); SH_DECL_MANUALHOOK6(SGD_LevelInit, 0, 0, 0, bool, const char *, const char *, const char *, const char *, bool, bool); @@ -684,7 +684,7 @@ Handler_Init(GameSessionConfiguration_t *pConfig, const char *pszMapName) } static CUtlVector * -Handler_StartChangeLevel() +Handler_StartChangeLevel(int unknown) { mm_HandleLevelShutdown();