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

View File

@ -29,7 +29,7 @@
#define MODULE_LIBRARY "geoip"
#define MODULE_LIBCLASS ""
// 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__
#define MODULE_DATE __DATE__
@ -38,7 +38,7 @@
#endif // __DATE__
// metamod plugin?
//#define USE_METAMOD
#define USE_METAMOD
// use memory manager/tester?
// note that if you use this, you cannot construct/allocate