mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-02-03 09:10:35 +03:00
Geoip: Module should clear memory at mapchange.
This commit is contained in:
parent
94552e5503
commit
6916eb8613
@ -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},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user