- added a new render style 'Shadow'. Essentially it's just a black translucent stencil with an alpha of 0.3. The purpose of this style is to be used as a software renderer approximation of GZDoom's spectre effect.
- allow setting 'Shadow' as default fuzz effect - changed CVAR conversion that strings 'false' and 'true' get evaluated as integers 0 and 1 respectively so that changing boolean CVARs to int does not destroy their values. SVN r3076 (trunk)
This commit is contained in:
parent
e46183d836
commit
231e7a1c6d
9 changed files with 81 additions and 16 deletions
|
|
@ -221,7 +221,16 @@ int FBaseCVar::ToInt (UCVarValue value, ECVarType type)
|
|||
#else
|
||||
case CVAR_Float: res = (int)value.Float; break;
|
||||
#endif
|
||||
case CVAR_String: res = strtol (value.String, NULL, 0); break;
|
||||
case CVAR_String:
|
||||
{
|
||||
if (stricmp (value.String, "true") == 0)
|
||||
res = 1;
|
||||
else if (stricmp (value.String, "false") == 0)
|
||||
res = 0;
|
||||
else
|
||||
res = strtol (value.String, NULL, 0);
|
||||
break;
|
||||
}
|
||||
case CVAR_GUID: res = 0; break;
|
||||
default: res = 0; break;
|
||||
}
|
||||
|
|
@ -444,7 +453,12 @@ UCVarValue FBaseCVar::FromString (const char *value, ECVarType type)
|
|||
break;
|
||||
|
||||
case CVAR_Int:
|
||||
ret.Int = strtol (value, NULL, 0);
|
||||
if (stricmp (value, "true") == 0)
|
||||
ret.Int = 1;
|
||||
else if (stricmp (value, "false") == 0)
|
||||
ret.Int = 0;
|
||||
else
|
||||
ret.Int = strtol (value, NULL, 0);
|
||||
break;
|
||||
|
||||
case CVAR_Float:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue