From 49e735770481276bb8d7844f31211430ba9cc236 Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 27 Jul 2023 17:49:26 -0700 Subject: [PATCH] Add MSF_FLATLIGHTING --- src/deh_tables.c | 1 + src/p_setup.c | 2 ++ src/r_defs.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/deh_tables.c b/src/deh_tables.c index 29724923f..353bae7ab 100644 --- a/src/deh_tables.c +++ b/src/deh_tables.c @@ -6004,6 +6004,7 @@ const char *const MSF_LIST[] = { "RIPPLE_FLOOR", "RIPPLE_CEILING", "INVERTENCORE", + "FLATLIGHTING", NULL }; diff --git a/src/p_setup.c b/src/p_setup.c index ea2fb595d..3a98716dc 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -1705,6 +1705,8 @@ static void ParseTextmapSectorParameter(UINT32 i, const char *param, const char sectors[i].flags |= MSF_RIPPLE_CEILING; else if (fastcmp(param, "invertencore") && fastcmp("true", val)) sectors[i].flags |= MSF_INVERTENCORE; + else if (fastcmp(param, "flatlighting") && fastcmp("true", val)) + sectors[i].flags |= MSF_FLATLIGHTING; else if (fastcmp(param, "nostepup") && fastcmp("true", val)) sectors[i].specialflags |= SSF_NOSTEPUP; else if (fastcmp(param, "doublestepup") && fastcmp("true", val)) diff --git a/src/r_defs.h b/src/r_defs.h index 634928a59..a33162ac6 100644 --- a/src/r_defs.h +++ b/src/r_defs.h @@ -350,6 +350,8 @@ typedef enum MSF_RIPPLE_CEILING = 1<<11, // invert encore color remap status MSF_INVERTENCORE = 1<<12, + // turn off directional lighting + MSF_FLATLIGHTING = 1<<13, } sectorflags_t; typedef enum