1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00

[Dota] Fix for new param added in INetworkGameServer::StartChangeLevel.

This commit is contained in:
Nicholas Hastings 2017-02-18 10:23:20 -05:00
parent 9a8ebe74ff
commit 3eb98bd1c3

View File

@ -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_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_MANUALHOOK2_void(SGD_Init, 0, 0, 0, GameSessionConfiguration_t *, const char *);
SH_DECL_MANUALHOOK2(SGD_StartChangeLevel, 0, 0, 0, CUtlVector<INetworkGameClient *> *, const char *, void *); SH_DECL_MANUALHOOK3(SGD_StartChangeLevel, 0, 0, 0, CUtlVector<INetworkGameClient *> *, const char *, const char *, void *);
SH_DECL_MANUALHOOK5_void(SGD_SwitchToLoop, 0, 0, 0, const char *, KeyValues *, uint32, const char *, bool); 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 *); SH_DECL_MANUALHOOK3(SGD_AllocateServer, 0, 0, 0, INetworkGameServer *, int, INetworkServerService *, ISource2WorldSession *);
@ -77,7 +77,7 @@ static void
Handler_Init(GameSessionConfiguration_t *, const char *); Handler_Init(GameSessionConfiguration_t *, const char *);
static CUtlVector<INetworkGameClient *> * static CUtlVector<INetworkGameClient *> *
Handler_StartChangeLevel(const char *, void *); Handler_StartChangeLevel(const char *, const char *, void *);
#else #else
SH_DECL_MANUALHOOK0(SGD_GameInit, 0, 0, 0, bool); 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); 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<INetworkGameClient *> * static CUtlVector<INetworkGameClient *> *
Handler_StartChangeLevel(const char *, void *) Handler_StartChangeLevel(const char *, const char *, void *)
{ {
mm_HandleLevelShutdown(); mm_HandleLevelShutdown();