- fix tag for udmf maps

- fix the default surface color
This commit is contained in:
Magnus Norddahl 2018-10-28 21:01:51 +01:00
parent 9e1a9d7d75
commit 8716182c99
2 changed files with 9 additions and 2 deletions

View file

@ -207,6 +207,10 @@ void FProcessor::ParseLinedef(IntLineDef *ld)
{
ld->args[0] = CheckInt(key);
}
else if (Extended && !stricmp(key, "id"))
{
ld->args[1] = CheckInt(key);
}
else if (!stricmp(key, "blocking") && !stricmp(value, "true"))
{
ld->flags |= ML_BLOCKING;

View file

@ -567,11 +567,14 @@ void FLevel::ParseConfigFile(const char *file)
surfaceLight.outerCone = 1.0f;
surfaceLight.innerCone = 0;
surfaceLight.falloff = 1.0f;
surfaceLight.intensity = 1.0f;
surfaceLight.distance = 32.0f;
surfaceLight.intensity = 10.0f;
surfaceLight.distance = 150.0f;
surfaceLight.bIgnoreCeiling = false;
surfaceLight.bIgnoreFloor = false;
surfaceLight.bNoCenterPoint = false;
surfaceLight.rgb.x = 1.0f;
surfaceLight.rgb.y = 1.0f;
surfaceLight.rgb.z = 1.0f;
lexer->ExpectNextToken(TK_LBRACK);
lexer->Find();