From 8716182c999d37f3aad7f6624154fa5c889655f3 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 28 Oct 2018 21:01:51 +0100 Subject: [PATCH] - fix tag for udmf maps - fix the default surface color --- src/level/level_udmf.cpp | 4 ++++ src/lightmap/mapdata.cpp | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/level/level_udmf.cpp b/src/level/level_udmf.cpp index c852331..2ea5222 100644 --- a/src/level/level_udmf.cpp +++ b/src/level/level_udmf.cpp @@ -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; diff --git a/src/lightmap/mapdata.cpp b/src/lightmap/mapdata.cpp index 93ebf9b..377f62b 100644 --- a/src/lightmap/mapdata.cpp +++ b/src/lightmap/mapdata.cpp @@ -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();