make "havoc" map to the correct attenuation type

This commit is contained in:
Bill Currie 2004-01-27 08:12:59 +00:00
parent 59101d3272
commit 2ea155dc53
2 changed files with 2 additions and 2 deletions

View file

@ -311,7 +311,7 @@ LoadEntities (void)
else if (!strcmp(com_token, "none"))
entity->attenuation = LIGHT_NO_ATTEN;
else if (!strcmp(com_token, "havoc"))
entity->attenuation = LIGHT_REALISTIC;
entity->attenuation = LIGHT_LH;
else
entity->attenuation = atoi (com_token);
} else if (!strcmp(key, "_radius"))

View file

@ -159,7 +159,7 @@ DecodeArgs (int argc, char **argv)
else if (!strcmp(optarg, "none"))
options.attenuation = LIGHT_NO_ATTEN;
else if (!strcmp(optarg, "havoc"))
options.attenuation = LIGHT_REALISTIC;
options.attenuation = LIGHT_LH;
else {
options.attenuation = strtol (optarg, &eptr, 10);
if (eptr == optarg || *eptr)