Make sure static data expires.

This commit is contained in:
Enno Rehling 2010-10-31 19:32:24 -07:00
parent 03fd39ac63
commit 279fa623d9
1 changed files with 4 additions and 1 deletions

View File

@ -124,8 +124,11 @@ boolean nomonsters = false;
static int
RemoveNMRNewbie(void) {
static int value = -1;
if (value<0) {
static int gamecookie = -1;
if (value<0 || gamecookie!=global.cookie) {
value = get_param_int(global.parameters, "nmr.removenewbie", 0);
gamecookie = global.cookie;
}
return value;
}