From f0c53284813fb0c412ca19a9319febdf1ee00c22 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Mon, 24 Jan 2022 13:39:17 -0500 Subject: [PATCH] - lock lightmaps behind a command line argument with a warning --- src/maploader/maploader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/maploader/maploader.cpp b/src/maploader/maploader.cpp index b97e08897a..63ae630b4d 100644 --- a/src/maploader/maploader.cpp +++ b/src/maploader/maploader.cpp @@ -83,6 +83,7 @@ #include "vm.h" #include "texturemanager.h" #include "hw_vertexbuilder.h" +#include "version.h" enum { @@ -3340,6 +3341,10 @@ void MapLoader::LoadLightmap(MapData *map) Level->LPWidth = 0; Level->LPHeight = 0; + if (!Args->CheckParm("-enablelightmaps")) + return; // this feature is still too early WIP to allow general access + Printf(PRINT_HIGH, "WARNING! Lightmaps are an experimental feature and are subject to change before being finalized. Do not expect this to work as-is in future releases of %s!\n", GAMENAME); + if (!map->Size(ML_LIGHTMAP)) return;