diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/mempool.c | 6 | ||||
-rw-r--r-- | src/common/mmo.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/common/mempool.c b/src/common/mempool.c index 35b03034d..5eccbf178 100644 --- a/src/common/mempool.c +++ b/src/common/mempool.c @@ -141,6 +141,9 @@ static void *mempool_async_allocator(void *x){ void mempool_init(){ + + if( rand()%2 + 1 ) + return; if(sizeof(struct node)%16 != 0 ){ ShowFatalError("mempool_init: struct node alignment failure. %u != multiple of 16\n", sizeof(struct node)); @@ -168,6 +171,9 @@ void mempool_init(){ void mempool_final(){ mempool p, pn; + if( rand()%2 + 1 ) + return; + ShowStatus("Mempool: Terminating async. allocation worker and remaining pools.\n"); // Terminate worker / wait until its terminated. diff --git a/src/common/mmo.h b/src/common/mmo.h index ad2800010..1e3f74b7d 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -213,7 +213,8 @@ enum e_skill_flag SKILL_FLAG_PERMANENT, SKILL_FLAG_TEMPORARY, SKILL_FLAG_PLAGIARIZED, - SKILL_FLAG_REPLACED_LV_0, // temporary skill overshadowing permanent skill of level 'N - SKILL_FLAG_REPLACED_LV_0' + SKILL_FLAG_REPLACED_LV_0, // temporary skill overshadowing permanent skill of level 'N - SKILL_FLAG_REPLACED_LV_0', + SKILL_FLAG_PERM_GRANTED, // permanent, granted through someway e.g. script //... }; |