From 27c80b00f877dc5aa194fd93b5276028eae98cf9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 2 Sep 2005 03:28:44 +0000 Subject: [PATCH] Fix for bug at18293. --- dlls/dod2/dodx/moduleconfig.cpp | 4 +++- dlls/dod2/dodx/moduleconfig.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/dod2/dodx/moduleconfig.cpp b/dlls/dod2/dodx/moduleconfig.cpp index fd5a9f2a..7794e04f 100755 --- a/dlls/dod2/dodx/moduleconfig.cpp +++ b/dlls/dod2/dodx/moduleconfig.cpp @@ -379,9 +379,11 @@ void OnAmxxAttach() { g_rank.loadRank( MF_BuildPathname("%s", get_localinfo("dodstats","addons/amxmodx/data/dodstats.dat") ) ); } +} +void ServerActivate(edict_t *pEdictList, int edictCount, int clientMax) +{ g_map.Init(); - } void OnAmxxDetach() { diff --git a/dlls/dod2/dodx/moduleconfig.h b/dlls/dod2/dodx/moduleconfig.h index 1a91ecfc..40ccabe0 100755 --- a/dlls/dod2/dodx/moduleconfig.h +++ b/dlls/dod2/dodx/moduleconfig.h @@ -75,7 +75,7 @@ // #define FN_ClientPutInServer ClientPutInServer /* pfnClientPutInServer() (wd) Client is entering the game */ // #define FN_ClientCommand ClientCommand /* pfnClientCommand() (wd) Player has sent a command (typed or from a bind) */ // #define FN_ClientUserInfoChanged ClientUserInfoChanged /* pfnClientUserInfoChanged() (wd) Client has updated their setinfo structure */ -// #define FN_ServerActivate ServerActivate /* pfnServerActivate() (wd) Server is starting a new map */ +#define FN_ServerActivate ServerActivate /* pfnServerActivate() (wd) Server is starting a new map */ #define FN_ServerDeactivate ServerDeactivate /* pfnServerDeactivate() (wd) Server is leaving the map (shutdown or changelevel); SDK2 */ // #define FN_PlayerPreThink PlayerPreThink /* pfnPlayerPreThink() */ // #define FN_PlayerPostThink PlayerPostThink /* pfnPlayerPostThink() */