Geoip: Module should clear memory at mapchange.

This commit is contained in:
Arkshine 2014-07-29 14:40:41 +02:00
parent 94552e5503
commit 6916eb8613
2 changed files with 4 additions and 4 deletions

View File

@ -11,8 +11,7 @@
// GeoIP Module // GeoIP Module
// //
#include <stdio.h> #include "geoip_amxx.h"
#include "geoip_amxx.h"
GeoIP *gi = NULL; GeoIP *gi = NULL;
@ -113,3 +112,4 @@ AMX_NATIVE_INFO geoip_natives[] = {
{"geoip_country", amx_geoip_country}, {"geoip_country", amx_geoip_country},
{NULL, NULL}, {NULL, NULL},
}; };

View File

@ -29,7 +29,7 @@
#define MODULE_LIBRARY "geoip" #define MODULE_LIBRARY "geoip"
#define MODULE_LIBCLASS "" #define MODULE_LIBCLASS ""
// If you want the module not to be reloaded on mapchange, remove / comment out the next line // If you want the module not to be reloaded on mapchange, remove / comment out the next line
//#define MODULE_RELOAD_ON_MAPCHANGE #define MODULE_RELOAD_ON_MAPCHANGE
#ifdef __DATE__ #ifdef __DATE__
#define MODULE_DATE __DATE__ #define MODULE_DATE __DATE__
@ -38,7 +38,7 @@
#endif // __DATE__ #endif // __DATE__
// metamod plugin? // metamod plugin?
//#define USE_METAMOD #define USE_METAMOD
// use memory manager/tester? // use memory manager/tester?
// note that if you use this, you cannot construct/allocate // note that if you use this, you cannot construct/allocate