mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
make "havoc" map to the correct attenuation type
This commit is contained in:
parent
59101d3272
commit
2ea155dc53
2 changed files with 2 additions and 2 deletions
|
@ -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"))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue